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
Ctrl+K
- 796 kB xet
- 725 kB xet
- 319 kB xet
- 372 kB xet
- 518 kB xet
- 546 kB xet
- 340 kB xet
- 367 kB xet
- 387 kB xet
- 376 kB xet
- 919 kB xet
- 269 kB xet
- 522 kB xet
- 428 kB xet
- 384 kB xet
- 657 kB xet
- 370 kB xet
- 348 kB xet
- 730 kB xet
- 335 kB xet
- 756 kB xet
- 607 kB xet
- 303 kB xet
- 340 kB xet
- 373 kB xet
- 389 kB xet
- 609 kB xet
- 699 kB xet
- 420 kB xet
- 709 kB xet
- 585 kB xet
- 473 kB xet
- 1.81 MB xet
- 401 kB xet
- 331 kB xet
- 483 kB xet
- 831 kB xet