Instructions to use Fantasy-Studio/Paint-by-Example with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Fantasy-Studio/Paint-by-Example with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Fantasy-Studio/Paint-by-Example", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Commit History
-
Adding `safetensors` variant of this model
Verified signatureThis is an automated PR created with https://huggingface.co/spaces/safetensors/convert This new file is equivalent to `pytorch_model.bin` but safe in the sense that no arbitrary code can be put into it. These files also happen to load much faster than their pytorch counterpart: https://colab.research.google.com/github/huggingface/notebooks/blob/main/safetensors_doc/en/speed.ipynb The widgets on your model page will run using this model even if this is not merged making sure the file actually works. If you find any issues: please report here: https://huggingface.co/spaces/safetensors/convert/discussions Feel free to ignore this PR.96e1ca4
-
Update README.md
351e642
-
Merge branch 'main' of https://huggingface.co/Fantasy-Studio/Paint-by-Example into main
9a4eb6f -
add diffusers weights
f199dc0 -
Update README.md
c2efa9f -
Update README.md
aee33aa -
Create README.md
418d8b5
-
Upload model.ckpt
37bfdc5 -
Delete model.ckpt
444f558 -
Upload model.ckpt
032242a -
Delete model.ckpt
1a6d531
-
Upload model.ckpt
8065449 -
Delete epoch=000020.ckpt
0c42020 -
Upload epoch=000020.ckpt
cfdaeae -
initial commit
b81f114