## ๐ข News
- **11/03/2024** ๐ฅ We provide a Gradio launching script for InstantIR, you can now deploy it on your local machine!
- **11/02/2024** ๐ฅ InstantIR is now compatitble with ๐งจ `diffusers`, you can utilize features from this fascinating package!
- **10/15/2024** ๐ฅ Code and model released!
## ๐ TODOs:
- [ ] Launch online demo
- [x] Remove dependency on local `diffusers`
- [x] Gradio launching script
## โจ Usage
### Quick start
#### 1. Clone this repo and setting up environment
```sh
git clone https://github.com/JY-Joy/InstantIR.git
cd InstantIR
conda create -n instantir python=3.9 -y
conda activate instantir
pip install -r requirements.txt
```
#### 2. Download pre-trained models
InstantIR is built on SDXL and DINOv2. You can download them either directly from ๐ค huggingface or using Python package.
| ๐ค link | Python command
| :--- | :----------
|[SDXL](https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0) | `hf_hub_download(repo_id="stabilityai/stable-diffusion-xl-base-1.0")`
|[facebook/dinov2-large](https://huggingface.co/facebook/dinov2-large) | `hf_hub_download(repo_id="facebook/dinov2-large")`
|[InstantX/InstantIR](https://huggingface.co/InstantX/InstantIR) | `hf_hub_download(repo_id="InstantX/InstantIR")`
Note: Make sure to import the package first with `from huggingface_hub import hf_hub_download` if you are using Python script.
#### 3. Inference
You can run InstantIR inference using `infer.sh` with the following arguments specified.
```sh
infer.sh \
--sdxl_path