diff --git a/README.md b/README.md index 09617c2..4cc7c6d 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ ``` conda create -n invsr python=3.10 conda activate invsr -pip install torch==2.4.0 torchvision==0.19.0 torchaudio==2.4.0 --index-url https://download.pytorch.org/whl/cu121s +pip install torch==2.4.0 torchvision==0.19.0 torchaudio==2.4.0 --index-url https://download.pytorch.org/whl/cu121 pip install -U xformers==0.0.27.post2 --index-url https://download.pytorch.org/whl/cu121 pip install -e ".[torch]" pip install -r requirements.txt @@ -33,16 +33,15 @@ pip install -r requirements.txt ## Applications ### :point_right: Real-world Image Super-resolution [](https://imgsli.com/MzI2MTU5) [](https://imgsli.com/MzI2MTUx) [](https://imgsli.com/MzI2MTUy) - -[](https://imgsli.com/MzI2MTU0) [](https://imgsli.com/MzI2MTU3) [](https://imgsli.com/MzI2MTU1) +[](https://imgsli.com/MzI2MTU0) [](https://imgsli.com/MzI2MTU3) [](https://imgsli.com/MzI2MTU1) ### :point_right: General Image Inhancement -[](https://imgsli.com/MzI2MTYw) [](https://imgsli.com/MzI2MTYy) -[](https://imgsli.com/MzI2MjAx) [](https://imgsli.com/MzI2MjAz) [](https://imgsli.com/MzI2MjA0) +[](https://imgsli.com/MzI2MTYw) [](https://imgsli.com/MzI2MTYy) +[](https://imgsli.com/MzI2MjAx) [](https://imgsli.com/MzI2MjAz) [](https://imgsli.com/MzI2MjA0) ### :point_right: AIGC Image Inhancement -[](https://imgsli.com/MzI2MjQy) [](https://imgsli.com/MzI2MjQ1) [](https://imgsli.com/MzI2MjQ3) -[](https://imgsli.com/MzI2MjQ5) [](https://imgsli.com/MzI2MjUw) [](https://imgsli.com/MzI2MjUx) +[](https://imgsli.com/MzI2MjQy) [](https://imgsli.com/MzI2MjQ1) [](https://imgsli.com/MzI2MjQ3) +[](https://imgsli.com/MzI2MjQ5) [](https://imgsli.com/MzI2MjUw) [](https://imgsli.com/MzI2MjUx) @@ -56,7 +55,8 @@ pip install -r requirements.txt python inference_invsr.py -i [image folder/image path] -o [result folder] --num_steps 1 ``` 1. This script will automatically download the pre-trained [noise predictor](https://huggingface.co/OAOA/InvSR/tree/main) and [SD-Turbo](https://huggingface.co/stabilityai/sd-turbo/tree/main). If you have pre-downloaded them manually, please include them via ``--started_ckpt_path`` and ``--sd_path``. -2. You can freely adjust the sampling steps via ``--num_steps``. +2. To deal with large images, e.g., 1k---->4k, we recommend adding the option ``--chopping_size 256``. +3. You can freely adjust the sampling steps via ``--num_steps``. ### :airplane: Reproducing our paper results + Synthetic dataset of ImageNet-Test: [Google Drive](https://drive.google.com/file/d/1PRGrujx3OFilgJ7I6nW7ETIR00wlAl2m/view?usp=sharing). diff --git a/requirements.txt b/requirements.txt index c11ab10..9e86830 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,10 +1,11 @@ -transformers==4.46.0 +pyiqa==0.1.12 +transformers==4.37.2 opencv-python==4.10.0.84 +albumentations==1.4.18 bitsandbytes sentencepiece protobuf python-box omegaconf loguru -pyiqa einops