├── .gitignore ├── .idea ├── .gitignore ├── MM-RealSR.iml ├── inspectionProfiles │ └── profiles_settings.xml ├── misc.xml └── modules.xml ├── .pre-commit-config.yaml ├── .vscode └── settings.json ├── LICENSE ├── MANIFEST.in ├── Metric ├── DISTS.py ├── LPIPS.py └── NIQE.py ├── README.md ├── VERSION ├── assets ├── realesrgan_logo.png ├── realesrgan_logo_ai.png ├── realesrgan_logo_av.png ├── realesrgan_logo_gi.png ├── realesrgan_logo_gv.png ├── teaser-text.png └── teaser.jpg ├── docs ├── CONTRIBUTING.md ├── FAQ.md ├── Training.md ├── Training_CN.md ├── anime_comparisons.md ├── anime_comparisons_CN.md ├── anime_model.md ├── anime_video_model.md ├── feedback.md ├── model_zoo.md └── ncnn_conversion.md ├── experiments └── pretrained_models │ └── README.md ├── figs ├── im_c_real.PNG ├── im_c_sy.PNG └── mmrealsr.jpeg ├── imgs ├── 0014.jpg ├── blur.gif ├── noise.gif └── oldphoto6.png ├── inference_mmrealsr.py ├── inference_mmrealsr_demo.py ├── mmrealsr ├── __init__.py ├── archs │ ├── __init__.py │ ├── degradat_arch.py │ ├── discriminator_arch.py │ ├── mmrealsr_arch.py │ └── srvgg_arch.py ├── data │ ├── __init__.py │ ├── degradations.py │ ├── mmrealsr_dataset.py │ ├── realesrgan_dataset.py │ ├── realesrgan_paired_dataset.py │ └── transforms.py ├── losses │ ├── __init__.py │ └── losses.py ├── models │ ├── __init__.py │ ├── mmrealsrgan_model.py │ └── mmrealsrnet_model.py ├── train.py ├── utils.py └── weights │ └── README.md ├── options ├── MMRealSRGAN_x4.yml ├── MMRealSRNet_x4.yml └── val.yml ├── requirements.txt ├── scripts ├── extract_subimages.py ├── generate_meta_info.py ├── generate_meta_info_pairdata.py ├── generate_multiscale_DF2K.py └── pytorch2onnx.py ├── setup.cfg ├── setup.py └── tests ├── data ├── gt.lmdb │ ├── data.mdb │ ├── lock.mdb │ └── meta_info.txt ├── gt │ ├── baboon.png │ └── comic.png ├── lq.lmdb │ ├── data.mdb │ ├── lock.mdb │ └── meta_info.txt ├── lq │ ├── baboon.png │ └── comic.png ├── meta_info_gt.txt ├── meta_info_pair.txt ├── test_realesrgan_dataset.yml ├── test_realesrgan_model.yml ├── test_realesrgan_paired_dataset.yml └── test_realesrnet_model.yml ├── test_dataset.py ├── test_discriminator_arch.py ├── test_model.py └── test_utils.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/.gitignore -------------------------------------------------------------------------------- /.idea/.gitignore: -------------------------------------------------------------------------------- 1 | # Default ignored files 2 | /shelf/ 3 | /workspace.xml 4 | -------------------------------------------------------------------------------- /.idea/MM-RealSR.iml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/.idea/MM-RealSR.iml -------------------------------------------------------------------------------- /.idea/inspectionProfiles/profiles_settings.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/.idea/inspectionProfiles/profiles_settings.xml -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/.idea/misc.xml -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/.idea/modules.xml -------------------------------------------------------------------------------- /.pre-commit-config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/.pre-commit-config.yaml -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/LICENSE -------------------------------------------------------------------------------- /MANIFEST.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/MANIFEST.in -------------------------------------------------------------------------------- /Metric/DISTS.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/Metric/DISTS.py -------------------------------------------------------------------------------- /Metric/LPIPS.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/Metric/LPIPS.py -------------------------------------------------------------------------------- /Metric/NIQE.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/Metric/NIQE.py -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/README.md -------------------------------------------------------------------------------- /VERSION: -------------------------------------------------------------------------------- 1 | 0.2.5.0 2 | -------------------------------------------------------------------------------- /assets/realesrgan_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/assets/realesrgan_logo.png -------------------------------------------------------------------------------- /assets/realesrgan_logo_ai.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/assets/realesrgan_logo_ai.png -------------------------------------------------------------------------------- /assets/realesrgan_logo_av.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/assets/realesrgan_logo_av.png -------------------------------------------------------------------------------- /assets/realesrgan_logo_gi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/assets/realesrgan_logo_gi.png -------------------------------------------------------------------------------- /assets/realesrgan_logo_gv.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/assets/realesrgan_logo_gv.png -------------------------------------------------------------------------------- /assets/teaser-text.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/assets/teaser-text.png -------------------------------------------------------------------------------- /assets/teaser.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/assets/teaser.jpg -------------------------------------------------------------------------------- /docs/CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/docs/CONTRIBUTING.md -------------------------------------------------------------------------------- /docs/FAQ.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/docs/FAQ.md -------------------------------------------------------------------------------- /docs/Training.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/docs/Training.md -------------------------------------------------------------------------------- /docs/Training_CN.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/docs/Training_CN.md -------------------------------------------------------------------------------- /docs/anime_comparisons.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/docs/anime_comparisons.md -------------------------------------------------------------------------------- /docs/anime_comparisons_CN.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/docs/anime_comparisons_CN.md -------------------------------------------------------------------------------- /docs/anime_model.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/docs/anime_model.md -------------------------------------------------------------------------------- /docs/anime_video_model.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/docs/anime_video_model.md -------------------------------------------------------------------------------- /docs/feedback.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/docs/feedback.md -------------------------------------------------------------------------------- /docs/model_zoo.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/docs/model_zoo.md -------------------------------------------------------------------------------- /docs/ncnn_conversion.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/docs/ncnn_conversion.md -------------------------------------------------------------------------------- /experiments/pretrained_models/README.md: -------------------------------------------------------------------------------- 1 | Pretrained models 2 | -------------------------------------------------------------------------------- /figs/im_c_real.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/figs/im_c_real.PNG -------------------------------------------------------------------------------- /figs/im_c_sy.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/figs/im_c_sy.PNG -------------------------------------------------------------------------------- /figs/mmrealsr.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/figs/mmrealsr.jpeg -------------------------------------------------------------------------------- /imgs/0014.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/imgs/0014.jpg -------------------------------------------------------------------------------- /imgs/blur.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/imgs/blur.gif -------------------------------------------------------------------------------- /imgs/noise.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/imgs/noise.gif -------------------------------------------------------------------------------- /imgs/oldphoto6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/imgs/oldphoto6.png -------------------------------------------------------------------------------- /inference_mmrealsr.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/inference_mmrealsr.py -------------------------------------------------------------------------------- /inference_mmrealsr_demo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/inference_mmrealsr_demo.py -------------------------------------------------------------------------------- /mmrealsr/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/mmrealsr/__init__.py -------------------------------------------------------------------------------- /mmrealsr/archs/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/mmrealsr/archs/__init__.py -------------------------------------------------------------------------------- /mmrealsr/archs/degradat_arch.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/mmrealsr/archs/degradat_arch.py -------------------------------------------------------------------------------- /mmrealsr/archs/discriminator_arch.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/mmrealsr/archs/discriminator_arch.py -------------------------------------------------------------------------------- /mmrealsr/archs/mmrealsr_arch.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/mmrealsr/archs/mmrealsr_arch.py -------------------------------------------------------------------------------- /mmrealsr/archs/srvgg_arch.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/mmrealsr/archs/srvgg_arch.py -------------------------------------------------------------------------------- /mmrealsr/data/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/mmrealsr/data/__init__.py -------------------------------------------------------------------------------- /mmrealsr/data/degradations.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/mmrealsr/data/degradations.py -------------------------------------------------------------------------------- /mmrealsr/data/mmrealsr_dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/mmrealsr/data/mmrealsr_dataset.py -------------------------------------------------------------------------------- /mmrealsr/data/realesrgan_dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/mmrealsr/data/realesrgan_dataset.py -------------------------------------------------------------------------------- /mmrealsr/data/realesrgan_paired_dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/mmrealsr/data/realesrgan_paired_dataset.py -------------------------------------------------------------------------------- /mmrealsr/data/transforms.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/mmrealsr/data/transforms.py -------------------------------------------------------------------------------- /mmrealsr/losses/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/mmrealsr/losses/__init__.py -------------------------------------------------------------------------------- /mmrealsr/losses/losses.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/mmrealsr/losses/losses.py -------------------------------------------------------------------------------- /mmrealsr/models/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/mmrealsr/models/__init__.py -------------------------------------------------------------------------------- /mmrealsr/models/mmrealsrgan_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/mmrealsr/models/mmrealsrgan_model.py -------------------------------------------------------------------------------- /mmrealsr/models/mmrealsrnet_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/mmrealsr/models/mmrealsrnet_model.py -------------------------------------------------------------------------------- /mmrealsr/train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/mmrealsr/train.py -------------------------------------------------------------------------------- /mmrealsr/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/mmrealsr/utils.py -------------------------------------------------------------------------------- /mmrealsr/weights/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/mmrealsr/weights/README.md -------------------------------------------------------------------------------- /options/MMRealSRGAN_x4.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/options/MMRealSRGAN_x4.yml -------------------------------------------------------------------------------- /options/MMRealSRNet_x4.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/options/MMRealSRNet_x4.yml -------------------------------------------------------------------------------- /options/val.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/options/val.yml -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/requirements.txt -------------------------------------------------------------------------------- /scripts/extract_subimages.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/scripts/extract_subimages.py -------------------------------------------------------------------------------- /scripts/generate_meta_info.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/scripts/generate_meta_info.py -------------------------------------------------------------------------------- /scripts/generate_meta_info_pairdata.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/scripts/generate_meta_info_pairdata.py -------------------------------------------------------------------------------- /scripts/generate_multiscale_DF2K.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/scripts/generate_multiscale_DF2K.py -------------------------------------------------------------------------------- /scripts/pytorch2onnx.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/scripts/pytorch2onnx.py -------------------------------------------------------------------------------- /setup.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/setup.cfg -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/setup.py -------------------------------------------------------------------------------- /tests/data/gt.lmdb/data.mdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/tests/data/gt.lmdb/data.mdb -------------------------------------------------------------------------------- /tests/data/gt.lmdb/lock.mdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/tests/data/gt.lmdb/lock.mdb -------------------------------------------------------------------------------- /tests/data/gt.lmdb/meta_info.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/tests/data/gt.lmdb/meta_info.txt -------------------------------------------------------------------------------- /tests/data/gt/baboon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/tests/data/gt/baboon.png -------------------------------------------------------------------------------- /tests/data/gt/comic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/tests/data/gt/comic.png -------------------------------------------------------------------------------- /tests/data/lq.lmdb/data.mdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/tests/data/lq.lmdb/data.mdb -------------------------------------------------------------------------------- /tests/data/lq.lmdb/lock.mdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/tests/data/lq.lmdb/lock.mdb -------------------------------------------------------------------------------- /tests/data/lq.lmdb/meta_info.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/tests/data/lq.lmdb/meta_info.txt -------------------------------------------------------------------------------- /tests/data/lq/baboon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/tests/data/lq/baboon.png -------------------------------------------------------------------------------- /tests/data/lq/comic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/tests/data/lq/comic.png -------------------------------------------------------------------------------- /tests/data/meta_info_gt.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/tests/data/meta_info_gt.txt -------------------------------------------------------------------------------- /tests/data/meta_info_pair.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/tests/data/meta_info_pair.txt -------------------------------------------------------------------------------- /tests/data/test_realesrgan_dataset.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/tests/data/test_realesrgan_dataset.yml -------------------------------------------------------------------------------- /tests/data/test_realesrgan_model.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/tests/data/test_realesrgan_model.yml -------------------------------------------------------------------------------- /tests/data/test_realesrgan_paired_dataset.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/tests/data/test_realesrgan_paired_dataset.yml -------------------------------------------------------------------------------- /tests/data/test_realesrnet_model.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/tests/data/test_realesrnet_model.yml -------------------------------------------------------------------------------- /tests/test_dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/tests/test_dataset.py -------------------------------------------------------------------------------- /tests/test_discriminator_arch.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/tests/test_discriminator_arch.py -------------------------------------------------------------------------------- /tests/test_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/tests/test_model.py -------------------------------------------------------------------------------- /tests/test_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TencentARC/MM-RealSR/HEAD/tests/test_utils.py --------------------------------------------------------------------------------