Image-to-Image
Diffusers
krea-2
krea2
anypaint
lora
inpainting
outpainting
arbitrary-mask
image-editing
Instructions to use yijunwang2/krea2-anypaint with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use yijunwang2/krea2-anypaint with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import load_image # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("krea/Krea-2-Turbo", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("yijunwang2/krea2-anypaint") prompt = "Turn this cat into a dog" input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png") image = pipe(image=input_image, prompt=prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
Ctrl+K
- 2.74 kB
- 81.7 kB
- 85.4 kB
- 2.64 kB
- 313 kB xet
- 215 kB xet
- 3.67 kB
- 170 kB xet
- 119 kB xet
- 4.62 kB
- 106 kB xet
- 51 kB
- 4.07 kB
- 122 kB xet
- 147 kB xet
- 1.42 kB
- 35.1 kB
- 37.9 kB
- 5.68 kB
- 256 kB xet
- 285 kB xet
- 1.99 kB
- 54.3 kB
- 60.5 kB
- 2.89 kB
- 64.6 kB
- 71.9 kB
- 3.74 kB
- 83.4 kB
- 52.7 kB
- 3.51 kB
- 54.3 kB
- 58.2 kB
- 3.93 kB
- 68.4 kB
- 64.1 kB
- 2.31 kB
- 93.7 kB
- 83.6 kB
- 2.64 kB
- 193 kB xet
- 95.3 kB
- 6.51 kB
- 336 kB xet
- 35.8 kB