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
Update README.md
Browse files
README.md
CHANGED
|
@@ -7,11 +7,6 @@ pipeline_tag: image-to-image
|
|
| 7 |
---
|
| 8 |
|
| 9 |
# InstantIR Model Card
|
| 10 |
-
|
| 11 |
-
<!-- > **InstantIR: Blind Image Restoration with Instant Generative Reference**<br>
|
| 12 |
-
> Jen-Yuan Huang<sup>1,2</sup>, Haofan Wang<sup>2</sup>, Qixun Wang<sup>2</sup>, Xu Bai<sup>2</sup>, Hao Ai<sup>2</sup>, Peng Xing<sup>2</sup>, Jen-Tse Huang<sup>3</sup> <br>
|
| 13 |
-
> <sup>1</sup>Peking University, <sup>2</sup>InstantX Team, <sup>3</sup>The Chinese University of Hong Kong -->
|
| 14 |
-
|
| 15 |
<div style="display: flex; gap: 10px;">
|
| 16 |
<a href='https://arxiv.org/abs/2410.06551'><img src='https://img.shields.io/badge/arXiv-b31b1b.svg'></a>
|
| 17 |
<a href='https://jy-joy.github.io/InstantIR'><img src='https://img.shields.io/badge/Website-informational'></a>
|
|
|
|
| 7 |
---
|
| 8 |
|
| 9 |
# InstantIR Model Card
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
<div style="display: flex; gap: 10px;">
|
| 11 |
<a href='https://arxiv.org/abs/2410.06551'><img src='https://img.shields.io/badge/arXiv-b31b1b.svg'></a>
|
| 12 |
<a href='https://jy-joy.github.io/InstantIR'><img src='https://img.shields.io/badge/Website-informational'></a>
|