← 开源
twtygqyy

pytorch-SRResNet

pytorch implementation for Photo-Realistic Single Image Super-Resolution Using a Generative Adversarial Network arXiv:1609.04802

Model DevelopmentArchitecturePython
在 GitHub 打开
增长势头
+024 小时新增 Star0.0%
511
Star
130
Fork
+0
本周
1
贡献者
创建于 2017-04-19 · 更新于 2026-08-27 · 今日第 18077 名
主要开发者
twtygqyy

twtygqyy/pytorch-SRResNet 排名第 18,077,有 511 个星标。

同类别比较

twtygqyy/pytorch-SRResNet 排名第 18,077,此处有 8 个同类条目;thunlp/TensorFlow-TransX 排名第 18,074。

同类别比较
名称排名指标
Kevin-thu/DiffMorpher18,058
语言:
Python
星标数:
511
分叉数:
51
简介:
Official Code for DiffMorpher: Unleashing the Capability of Diffusion Models for Image Morphing (CVPR 2024)
cydonia999/VGGFace2-pytorch18,065
语言:
Python
星标数:
511
分叉数:
95
简介:
PyTorch Face Recognizer based on 'VGGFace2: A dataset for recognising faces across pose and age'
mindsdb/lightwood18,071
语言:
Python
星标数:
511
分叉数:
101
简介:
Lightwood is Legos for Machine Learning.
thunlp/TensorFlow-TransX18,074
语言:
Python
星标数:
511
分叉数:
193
简介:
An implementation of TransE and its extended models for Knowledge Representation Learning on TensorFlow
MadryLab/cifar10_challenge18,083
语言:
Python
星标数:
510
分叉数:
129
简介:
A challenge to explore adversarial robustness of neural networks on CIFAR10.
albertbup/deep-belief-network18,089
语言:
Python
星标数:
510
分叉数:
208
简介:
A Python implementation of Deep Belief Networks built upon NumPy and TensorFlow with scikit-learn compatibility
microsoft/robustlearn18,097
语言:
Python
星标数:
510
分叉数:
66
简介:
Robust machine learning for responsible AI
wvangansbeke/Sparse-Depth-Completion18,102
语言:
Python
星标数:
510
分叉数:
77
简介:
Predict dense depth maps from sparse and noisy LiDAR frames guided by RGB images. (Ranked 1st place on KITTI) [MVA 2019]
关键参数与规格
关键参数与规格
参数值
语言Python
类别Model Development
子类别Architecture
关键词Computer vision, Image production
星标数511
分叉数130
贡献者1
创建日期2017-04-19
更新日期2026-08-27
1 天星标数0
7 天星标数0
排名18,077
上次排名17,842
排名变化-235
7 天星标排名16,454
上次 7 天星标排名16,467
7 天星标排名变化13
总星标排名19,056
上次总星标排名19,028
总星标排名变化-28
国家USA
README 摘录

PyTorch SRResNet Implementation of Paper: "Photo-Realistic Single Image Super-Resolution Using a Generative Adversarial Network"( in PyTorch Usage Training An example of training usage is shown as follows: demo We convert Set5 test set images to mat format using Matlab, for simple image reading An example of usage is shown as follows: Eval We convert Set5 test set images to mat format using Matlab. Since PSNR is evaluated on only Y channel, we import matlab in python, and use

rgb2ycbcr function for converting rgb image to ycbcr image. You will have to setup the matlab python interface so as to import matlab library. An example of usage is shown as follows: Prepare Training dataset Please refer Code for Data Generation for creating training files. Data augmentations including flipping, rotation, downsizing are adopted. 51** | Result From left to right are ground truth, bicubic and SRResNet

常见问题

记录了多少星标和分叉?

twtygqyy/pytorch-SRResNet 有 511 个星标和 130 个分叉。

仓库排名是多少?

twtygqyy/pytorch-SRResNet 排名第 18,077。

记录的语言和类别是什么?

twtygqyy/pytorch-SRResNet 有 511 个星标,语言为 Python,类别为 Model Development。

哪个仓库排名最接近?

twtygqyy/pytorch-SRResNet 与 thunlp/TensorFlow-TransX 比较,后者排名第 18,074,有 511 个星标。

README

PyTorch SRResNet

Implementation of Paper: "Photo-Realistic Single Image Super-Resolution Using a Generative Adversarial Network"(https://arxiv.org/abs/1609.04802) in PyTorch

Usage

Training

usage: main_srresnet.py [-h] [--batchSize BATCHSIZE] [--nEpochs NEPOCHS]
                        [--lr LR] [--step STEP] [--cuda] [--resume RESUME]
                        [--start-epoch START_EPOCH] [--threads THREADS]
                        [--pretrained PRETRAINED] [--vgg_loss] [--gpus GPUS]

optional arguments:
  -h, --help            show this help message and exit
  --batchSize BATCHSIZE
                        training batch size
  --nEpochs NEPOCHS     number of epochs to train for
  --lr LR               Learning Rate. Default=1e-4
  --step STEP           Sets the learning rate to the initial LR decayed by
                        momentum every n epochs, Default: n=500
  --cuda                Use cuda?
  --resume RESUME       Path to checkpoint (default: none)
  --start-epoch START_EPOCH
                        Manual epoch number (useful on restarts)
  --threads THREADS     Number of threads for data loader to use, Default: 1
  --pretrained PRETRAINED
                        path to pretrained model (default: none)
  --vgg_loss            Use content loss?
  --gpus GPUS           gpu ids (default: 0)

An example of training usage is shown as follows:

python main_srresnet.py --cuda --vgg_loss --gpus 0

demo

usage: demo.py [-h] [--cuda] [--model MODEL] [--image IMAGE]
               [--dataset DATASET] [--scale SCALE] [--gpus GPUS]

optional arguments:
  -h, --help         show this help message and exit
  --cuda             use cuda?
  --model MODEL      model path
  --image IMAGE      image name
  --dataset DATASET  dataset name
  --scale SCALE      scale factor, Default: 4
  --gpus GPUS        gpu ids (default: 0)

We convert Set5 test set images to mat format using Matlab, for simple image reading An example of usage is shown as follows:

python demo.py --model model/model_srresnet.pth --dataset Set5 --image butterfly_GT --scale 4 --cuda

Eval

usage: eval.py [-h] [--cuda] [--model MODEL] [--dataset DATASET]
               [--scale SCALE] [--gpus GPUS]

optional arguments:
  -h, --help         show this help message and exit
  --cuda             use cuda?
  --model MODEL      model path
  --dataset DATASET  dataset name, Default: Set5
  --scale SCALE      scale factor, Default: 4
  --gpus GPUS        gpu ids (default: 0)

We convert Set5 test set images to mat format using Matlab. Since PSNR is evaluated on only Y channel, we import matlab in python, and use rgb2ycbcr function for converting rgb image to ycbcr image. You will have to setup the matlab python interface so as to import matlab library. An example of usage is shown as follows:

python eval.py --model model/model_srresnet.pth --dataset Set5 --cuda

Prepare Training dataset

  • Please refer Code for Data Generation for creating training files.
  • Data augmentations including flipping, rotation, downsizing are adopted.

Performance

  • We provide a pretrained model trained on 291 images with data augmentation
  • Instance Normalization is applied instead of Batch Normalization for better performance
  • So far performance in PSNR is not as good as paper, any suggestion is welcome
Dataset SRResNet Paper SRResNet PyTorch
Set5 32.05 31.80
Set14 28.49 28.25
BSD100 27.58 27.51

Result

From left to right are ground truth, bicubic and SRResNet

排名相邻
同类项目