Instructions to use nvidia/difix_ref with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use nvidia/difix_ref with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("nvidia/difix_ref", 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
Download vae/diffusion_pytorch_model.safetensors from nvidia/difix_ref: direct link, hf CLI and curl.
- Browser
- Download file 339 MB
-
https://huggingface.co/nvidia/difix_ref/resolve/main/vae/diffusion_pytorch_model.safetensors
- Command line
-
hf download hf://nvidia/difix_ref/vae/diffusion_pytorch_model.safetensors
-
curl -L -o diffusion_pytorch_model.safetensors https://huggingface.co/nvidia/difix_ref/resolve/main/vae/diffusion_pytorch_model.safetensors
339 MB
- Xet hash:
- 0f1bea3cfd6874269d6a3e74a2dcb07c9b044c4021a7de7ce122cfacf6d1b83f
- Size of remote file:
- 339 MB
- SHA256:
- d3aa93824c839302d1103d72b0ea933df65206945b0e93140328562fffa6cf65
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.