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 image (13).png from InstantX/InstantIR: direct link, hf CLI and curl.
- Browser
- Download file 1.03 MB
-
https://huggingface.co/InstantX/InstantIR/resolve/refs%2Fpr%2F15/image%20(13).png
- Command line
-
hf download 'hf://InstantX/InstantIR@refs/pr/15/image (13).png'
-
curl -L -o 'image (13).png' 'https://huggingface.co/InstantX/InstantIR/resolve/refs%2Fpr%2F15/image%20(13).png'
1.03 MB
.png)
- Xet hash:
- 80cb4d06d601856aabcfd39829845246dbcc9867b898537c42f5d1623c9aa42f
- Size of remote file:
- 1.03 MB
- SHA256:
- d77457f9566a930eca165ef047c38bbbe6d7c9cae738d4bec2678d37916a63e5
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.