SkillAgentSearch skills...

SRCNN

Implementation of SRCNN in PyTorch

Install / Use

/learn @Mirwaisse/SRCNN
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

SRCNN

Implementation of SRCNN in PyTorch.

Usage

To train the model with a zoom factor of 2, for 200 epochs and on GPU:

python main.py --zoom_factor 2 --nb_epoch 200 --cuda

At each epoch, a .pth model file will be saved.

To use the model on an image: (the zoom factor must be the same the one used to train the model)

python run.py --zoom_factor 2 --model model_199.pth --image example.jpg --cuda

Example

Original image:

Original image

Bicubic interpolation zoom:

Bicubic interpolation zoom

SRCNN zoom:

 SRCNN zoom

Reference

Original paper on SRCNN by Dong et al. (Image Super-Resolution Using Deep Convolutional Networks)

View on GitHub
GitHub Stars48
CategoryDevelopment
Updated4mo ago
Forks16

Languages

Python

Security Score

72/100

Audited on Nov 25, 2025

No findings