Instructions to use krea/Krea-2-Turbo with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use krea/Krea-2-Turbo with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("krea/Krea-2-Turbo", dtype=torch.bfloat16, device_map="cuda") prompt = "A small, dark-colored cat is captured mid-stride, walking down the center of a narrow, abandoned street. The street is paved and appears cracked and worn. On either side of the street are tall, dilapidated buildings with visible brickwork and windows. A street lamp stands on the right side. The entire image is rendered in a monochromatic blue, with a distinct halftone dot pattern overlaying the scene, giving it a retro or printed appearance. The focus is soft, and the lighting is diffused, creating a hazy, atmospheric effect. The perspective is from ground level, looking down the length of the street, which narrows into the distance., halftone texture" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Prompts skills
#3
by Ian0707 - opened
Thanks for the open-weight release
I'm trying to learn how to write effective prompts for Krea 2, and the demo images would be a perfect reference.
Would you be able to share the exact prompts used to generate the showcase images, e.g. images/19.jpg, etc.?
Even a partial list would be very helpful. Thanks!
I have seen that area before, but some images in /images are more exquisite.
I removed some prompts to keep it clean but an older version has all of them. you can grab them here: https://huggingface.co/krea/Krea-2-Turbo/raw/665ef38131535e3a1da1a86c6ff2261e70ba9a55/README.md 36 prompts & images
