MCPcopy Index your code
hub / github.com/TencentARC/MM-RealSR

github.com/TencentARC/MM-RealSR @v1.0.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.0.0 ↗ · + Follow
113 symbols 480 edges 34 files 29 documented · 26% updated 2y agov1.0.0 · 2022-09-04★ 17811 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

📖 MM-RealSR: Metric Learning based Interactive Modulation for Real-World Super-Resolution

[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


🔧 Dependencies and Installation

Installation

  1. Clone repo

    bash git clone https://github.com/TencentARC/MM-RealSR.git cd MM-RealSR

  2. Install dependent packages

    ```bash

    Install basicsr - https://github.com/xinntao/BasicSR

    We use BasicSR for both training and inference

    pip install basicsr

    facexlib and gfpgan are for face enhancement

    pip install facexlib pip install gfpgan pip install -r requirements.txt python setup.py develop ```


Training

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

Model Zoo

Please download checkpoints from Google Drive.

Inference general images

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

Generate video demos

python inference_mmrealsr_demo.py -opt (path to .yml file) --model_path (path to checkpoint)

BibTeX

@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}
}

📧 Contact

If you have any question, please email eechongm@gmail.com.

🤗 Acknowledgement

Thanks to the following open-source projects:

Core symbols most depended-on inside this repo

feed_data
called by 7
mmrealsr/models/mmrealsrgan_model.py
sample_two_sigma
called by 6
mmrealsr/data/degradations.py
pre_process
called by 5
mmrealsr/utils.py
enhance
called by 5
mmrealsr/utils.py
custom_random_add_gaussian_noise_pt_anchor
called by 4
mmrealsr/data/degradations.py
custom_random_add_poisson_noise_pt_anchor
called by 4
mmrealsr/data/degradations.py
process
called by 3
mmrealsr/utils.py
tile_process
called by 3
mmrealsr/utils.py

Shape

Method 50
Function 47
Class 16

Languages

Python100%

Modules by API surface

mmrealsr/data/degradations.py23 symbols
mmrealsr/utils.py15 symbols
mmrealsr/archs/mmrealsr_arch.py12 symbols
mmrealsr/models/mmrealsrnet_model.py9 symbols
setup.py7 symbols
mmrealsr/models/mmrealsrgan_model.py6 symbols
mmrealsr/data/realesrgan_paired_dataset.py4 symbols
mmrealsr/data/realesrgan_dataset.py4 symbols
mmrealsr/data/mmrealsr_dataset.py4 symbols
scripts/extract_subimages.py3 symbols
mmrealsr/losses/losses.py3 symbols
mmrealsr/archs/srvgg_arch.py3 symbols

For agents

$ claude mcp add MM-RealSR \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page