Instructions to use CSWRY/VOSR with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use CSWRY/VOSR 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("CSWRY/VOSR", dtype=torch.bfloat16, device_map="cuda") 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
Download stable-diffusion-2-1-base/vae/diffusion_pytorch_model.fp16.safetensors from CSWRY/VOSR: direct link, hf CLI and curl.
- Browser
- Download file 167 MB
-
https://huggingface.co/CSWRY/VOSR/resolve/main/stable-diffusion-2-1-base/vae/diffusion_pytorch_model.fp16.safetensors
- Command line
-
hf download hf://CSWRY/VOSR/stable-diffusion-2-1-base/vae/diffusion_pytorch_model.fp16.safetensors
-
curl -L -o diffusion_pytorch_model.fp16.safetensors https://huggingface.co/CSWRY/VOSR/resolve/main/stable-diffusion-2-1-base/vae/diffusion_pytorch_model.fp16.safetensors
167 MB
- Xet hash:
- 3c7c4f20a24712463ea28b76f00833c4728be68851ed07330aaf2eb7300f3aad
- Size of remote file:
- 167 MB
- SHA256:
- 3e4c08995484ee61270175e9e7a072b66a6e4eeb5f0c266667fe1f45b90daf9a
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.