用于单张图像超分辨率的深度自适应推理网络
PyTorch implementation of Deep Adaptive Inference Networks for Single Image Super-Resolution
Overall structure of our AdaDSR.
SISR results on Set5. More results please refer to the paper.
An exemplar visualization of the SR results and depth map.
--matlab Truecd masked_conv2d; python setup.py install. Note that currently we provide a version modified from open-mmlab/mmdetection, which supports inference with 3x3 sparse convolution layer. We will provide a more general version in the future.We show some exemplar commands here for better introduction, and more useful scripts are given in the scripts folder.
AdaEDSR
python test.py --model adaedsr --name adaedsr_x2 --scale 2 --load_path ./ckpt/adaedsr_x2/AdaEDSR_model.pth --dataset_name set5 set14 b100 urban100 manga109 --depth 32 --chop True --sparse_conv True --matlab True --gpu_ids 0AdaRCAN
python test.py --model adarcan --name adarcan_x2 --scale 2 --load_path ./ckpt/adarcan_x2/AdaRCAN_model.pth --dataset_name set5 set14 b100 urban100 manga109 --depth 20 --chop True --sparse_conv True --matlab True --gpu_ids 0AdaEDSR (Load pre-trained EDSR model for more stable training)
python train.py --model adaedsr --name adaedsr_x2 --scale 2 --load_path ./pretrained/EDSR_official_32_x${scale}.pthAdaRCAN (Load pre-trained RCAN model for more stable training)
python train.py --model adarcan --name adarcan_x2 --scale 2 --load_path ./pretrained/RCAN_BIX2.pth--dataroot DIV2K_ROOT (train) or --dataroot BENCHMARK_ROOT (test), or you can add your own path in the rootlist of div2k_dataset or benchmark_dataset.--gpu_ids, e.g., --gpu_ids 0,1, --gpu_ids 3, --gpu_ids -1 (for CPU mode). In the default setting, all GPUs are used.If you find AdaDSR useful in your research, please consider citing:
@inproceedings{AdaDSR,
title={Deep Adaptive Inference Networks for Single Image Super-Resolution},
author={Liu, Ming and Zhang, Zhilu and Hou, Liya and Zuo, Wangmeng and Zhang, Lei},
booktitle={European Conference on Computer Vision Workshops},
year={2020}
}This repo is built upon the framework of CycleGAN, and we borrow some code from DPSR, mmdetection, EDSR, RCAN and SAN, thanks for their excellent work!
暂无开放 Issues,或尚未同步最近议题。