[Paper]
Chong Mou, Yanze Wu, Xintao Wang, Chao Dong, Jian Zhang, Ying Shan
Tencent ARC Lab; Shenzhen Institutes of Advanced Technology, Chinese Academy of Sciences
Clone repo
bash
git clone https://github.com/TencentARC/MM-RealSR.git
cd MM-RealSR
Install dependent packages
```bash
pip install basicsr
pip install facexlib pip install gfpgan pip install -r requirements.txt python setup.py develop ```
python -m torch.distributed.launch --nproc_per_node=4 --master_port=4321 mmrealsr/train.py -opt options/MMRealSRNet_x4.yml --launcher pytorch --auto_resume
python -m torch.distributed.launch --nproc_per_node=4 --master_port=4321 mmrealsr/train.py -opt options/MMRealSRGAN_x4.yml --launcher pytorch --auto_resume
Please download checkpoints from Google Drive.
Inference!
python inference_mmrealsr.py -opt (path to .yml file) --im_path (path to LR images) --model_path (path to checkpoint) --res_path (path to save SR images)
python Metric/LPIPS.py --folder_gt (path to HR images) --folder_restored (path to SR images)
python Metric/NIQE.py --folder_restored (path to SR images)
python Metric/DISTS.py --folder_gt (path to HR images) --folder_restored (path to SR images)
Results are in the results folder
python inference_mmrealsr_demo.py -opt (path to .yml file) --model_path (path to checkpoint)
@InProceedings{mou2022mmrealsr,
author = {Chong Mou and Yanze Wu and Xintao Wang and Chao Dong and Jian Zhang and Ying Shan},
title = { Metric Learning based Interactive Modulation for Real-World Super-Resolution},
booktitle = {European Conference on Computer Vision (ECCV)},
date = {2022}
}
If you have any question, please email eechongm@gmail.com.
Thanks to the following open-source projects:
$ claude mcp add MM-RealSR \
-- python -m otcore.mcp_server <graph>