Instructions to use Danrisi/GrainScape_Krea2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Danrisi/GrainScape_Krea2 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Danrisi/GrainScape_Krea2", dtype=torch.bfloat16, device_map="cuda") prompt = "Color film photography, 35mm color negative look, heavy film grain, high ISO noise, pushed film contrast, underexposed night scene. A Ford Crown Victoria Police Interceptor NYPD patrol car speeding through a city street at night, captured in a handheld amateur candid shot with strong motion blur and smeared details from high speed. Side view / front-side angle, the car slightly tilted in the frame, headlights blown out, roof lightbar glowing red and blue, reflections streaking across the glossy white-and-blue body panels. Large NYPD lettering on the front door, partially covered by messy red spray-painted graffiti reading “ACAB” in rough dripping letters. The graffiti looks fresh, uneven, aggressive, and hand-painted, with overspray and paint runs on the door. A uniformed police officer is visible in the driver’s seat through the side window and windshield, blurred by motion, low light, and reflections. Background: dense urban night street, colorful streaked lights from traffic, streetlights, neon signs, storefronts, and wet asphalt reflections. Long horizontal light trails, blurred passing cars, dark building silhouettes, harsh contrast between deep shadows and bright highlights. Dynamic panning effect, chaotic street energy, documentary realism, imperfect framing, slight camera shake, candid amateur quality, grainy texture, low-light color cast, crushed blacks, blown highlights, chromatic aberration," image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Welcome to the community
The community tab is the place to discuss and collaborate with the HF community!