Instructions to use InstantX/InstantIR with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use InstantX/InstantIR 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("InstantX/InstantIR", 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 assets/teaser_figure.png from InstantX/InstantIR: direct link, hf CLI and curl.
- Browser
- Download file 5.58 MB
-
https://huggingface.co/InstantX/InstantIR/resolve/main/assets/teaser_figure.png
- Command line
-
hf download hf://InstantX/InstantIR/assets/teaser_figure.png
-
curl -L -o teaser_figure.png https://huggingface.co/InstantX/InstantIR/resolve/main/assets/teaser_figure.png
5.58 MB

- Xet hash:
- b5c1727f78dc57a706e93f74c9a3e1470e50f52b5e7c1aed37a4ee0aa87574fb
- Size of remote file:
- 5.58 MB
- SHA256:
- 2b0c926a7913faed56e3f5d24967416e283f6d0372c769e24f0f8939f1b50d3f
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.