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
Commit History
-
Adding `safetensors` variant of this model
Verified signatureThis is an automated PR created with https://huggingface.co/spaces/safetensors/convert This new file is equivalent to `pytorch_model.bin` but safe in the sense that no arbitrary code can be put into it. These files also happen to load much faster than their pytorch counterpart: https://colab.research.google.com/github/huggingface/notebooks/blob/main/safetensors_doc/en/speed.ipynb The widgets on your model page will run using this model even if this is not merged making sure the file actually works. If you find any issues: please report here: https://huggingface.co/spaces/safetensors/convert/discussions Feel free to ignore this PR.9b7af9c
-
update demo
7cbe332
-
Update README.md
Verified signature1a8e796 -
Update README.md
Verified signature3f9a631 -
Update README.md
Verified signature360cb75
-
Update README.md
Verified signature6998fa2 -
Update README.md
Verified signature0b7b04f -
Update README.md
Verified signaturefdbafd0 -
Update README.md
Verified signaturec1056fa
-
Update README.md
Verified signaturebf2fe16 -
Update README.md
Verified signaturef44c3cc
-
Update README.md
Verified signature47fa009
-
Update README.md
Verified signaturef793f9c -
Update README.md
Verified signaturee9fa090 -
Delete .DS_Store
Verified signature8908e31
-
Update README.md
Verified signatureddc2ff1 -
Update README.md
Verified signaturec4a9e2a -
Update README.md
Verified signatureb476ead -
Update README.md
Verified signature0a39704 -
Update README.md
Verified signature7f725b5 -
Update README.md
Verified signature35af95f -
Update README.md
Verified signature8727eae -
Update README.md
Verified signaturefb942e2 -
Update README.md
Verified signature48f7d41 -
initialize model card
04f6fe0
-
Rename pytorch_lora_weights.bin to previewer_lora_weights.bin
Verified signaturec026882 -
previewer lora
Verified signature4faabef -
Rename adapter_ckpt.pt to adapter.pt
Verified signaturef58f335 -
Upload adapter_ckpt.pt
Verified signature74c0d4c -
Rename checkpoint-27000.pt to aggregator.pt
Verified signature8b935b6 -
upload aggregator ckpt
Verified signature2e4f7f5 -
initial commit
Verified signature84f8bf8