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
Download showcase/08_landscape_complex_result.webp from yijunwang2/krea2-anypaint: direct link, hf CLI and curl.
- Browser
- Download file 256 kB
-
https://huggingface.co/yijunwang2/krea2-anypaint/resolve/main/showcase/08_landscape_complex_result.webp
- Command line
-
hf download hf://yijunwang2/krea2-anypaint/showcase/08_landscape_complex_result.webp
-
curl -L -o 08_landscape_complex_result.webp https://huggingface.co/yijunwang2/krea2-anypaint/resolve/main/showcase/08_landscape_complex_result.webp
256 kB

- Xet hash:
- a3a5296c5dcc3ee5daffd32a00fa58765daa6f34c0b232a6ef66c232b6667f70
- Size of remote file:
- 256 kB
- SHA256:
- 2267eada9e1d808822faff0eb1fa8ee5eeb33ab728eb25d897dad694b904ce04
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.