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 DSC01038.ARW from InstantX/InstantIR: direct link, hf CLI and curl.
- Browser
- Download file 21.2 MB
-
https://huggingface.co/InstantX/InstantIR/resolve/refs%2Fpr%2F8/DSC01038.ARW
- Command line
-
hf download hf://InstantX/InstantIR@refs/pr/8/DSC01038.ARW
-
curl -L -o DSC01038.ARW https://huggingface.co/InstantX/InstantIR/resolve/refs%2Fpr%2F8/DSC01038.ARW
21.2 MB
- Xet hash:
- 85f377e94de319596c73aee13f7a8e22fcd2160ff4b679cec763561fbf140ec8
- Size of remote file:
- 21.2 MB
- SHA256:
- a356d722f4ca0b9009b330c89bc241088143fa0fedd1a46b6f8b5cbefb9867ff
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.