Instructions to use openbmb/VisCPM-Paint with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use openbmb/VisCPM-Paint with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("openbmb/VisCPM-Paint", 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.cef5957
-
update ckpt
pyx9913b8b90d5
-
Rename pipeline_stable_diffusion.py to pipeline.py
3fbf51c
-
Rename viscpm_paint_balance_checkpoint.pt to pytorch_model.balance.bin
628dca4 -
Rename viscpm_paint_zhplus_checkpoint.pt to pytorch_model.bin
62883b8 -
feat: 🎸 add paint model code
pyx99134d32fc1
-
Update README.md
93beeec -
Update README.md
4d553c2
-
Rename viscpm_paint_chplus_checkpoint.pt to viscpm_paint_zhplus_checkpoint.pt
8b40eaf
-
Rename config.json to model_index.json
a0d6e4c -
Update config.json
e0d5d2a -
Update config.json
56e2dac -
Create config.json
ad614cb -
Upload pytorch_model.bin
0bd1e1a -
Upload 5 files
0a6e9ec -
Upload viscpm_paint_balance_checkpoint.pt
5dab282
-
Upload viscpm_paint_chplus_checkpoint.pt
6893908
-
Update README.md
247801a -
Update README.md
ca83f46 -
initial commit
be5e6b2