Yiwen Wang1 | Ying Liang1 | Yuxuan Zhang1 | Xinning Chai1 | Zhengxue Cheng1 | Yingsheng Qin2 | Yucai Yang2 | Rong Xie1 | Li Song1
1Shanghai Jiao Tong University, China, 2Transsion, China
## git clone this repository
git clone https://github.com/Moonsofang/NTIRE-2025-SRlab
cd NTIRE-2025-SRlab
# create an environment with python >= 3.8
conda create -n srlab python=3.8
conda activate srlab
pip install -r requirements.txt
# or you can directly install the environment by following instruct
conda env create -f srlab.yml
conda activate srlab
- Download the pretrained SD-2-base models from HuggingFace
- Download the checkpoint, sam2.1_hiera_tiny, ram_swin_large and DAPE models from GoogleDrive.
- Or you can directly download these files in the NGain/Medialab repository.
You can put the models into preset/models.
You can put the testing images in the preset/datasets/test_datasets.
# for wild dataset
python ./test_seesr_sam.py \
--pretrained_model_path ./preset/models/stable-diffusion-2-base \
--prompt '' \
--seesr_model_path ./preset/models/checkpoint-90000 \
--ram_ft_path ./preset/models/DAPE.pth \
--image_path ./preset/datasets/test_datasets/wild \
--output_dir your_output_dir_path/wild \
--start_point noise \
--num_inference_steps 50 \
--guidance_scale 8.5 \
--added_prompt "clean, high-resolution, 8k, ultra-detailed, ultra-realistic" \
--upscale 1 \
--process_size 512
# for synthetic dataset
python ./test_seesr_sam.py \
--pretrained_model_path ./preset/models/stable-diffusion-2-base \
--prompt '' \
--seesr_model_path ./preset/models/checkpoint-90000 \
--ram_ft_path ./preset/models/DAPE.pth \
--image_path ./preset/datasets/test_datasets/synthetic \
--output_dir your_output_dir_path/synthetic \
--start_point noise \
--num_inference_steps 50 \
--guidance_scale 0.9 \
--upscale 4 \
--process_size 512
More details are here
Will release soon.
This project is based on diffusers and SeeSR. Some codes are brought from PASD, RAM and SAM2). Thanks for their awesome works. We also pay tribute to the pioneering work of StableSR.
If you have any questions, please feel free to contact: ly5825761@gmail.com
This project and related weights are released under the Apache 2.0 license.