Giter VIP home page Giter VIP logo

sephiroth7712 / sisr-gan-variants Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 52 KB

Comparative study of lightweight generator models (ESPCN, FSRCNN, IDN) in the SRGAN framework for Single Image Super-Resolution (SISR). Explore the trade-offs between performance and efficiency in GAN-based SISR.

License: Apache License 2.0

Python 96.02% Shell 3.98%
espcn fsrcnn information-distillation-network single-image-super-resolution srgan-pytorch super-resolution

sisr-gan-variants's Introduction

SISR-GAN-Variants

This repository contains the code and resources for the project "Evaluation of Alternative Generator Models in GAN-based Single Image Super-Resolution." The aim of this project is to investigate the performance of alternative lightweight generator models (ESPCN, FSRCNN, and IDN) within the SRGAN framework for single image super-resolution (SISR) tasks.

Table of Contents

Introduction

Single Image Super-Resolution (SISR) aims to reconstruct a high-resolution image from a single low-resolution input. Generative Adversarial Networks (GANs) have shown promising results in SISR tasks. This project explores the integration of lightweight generator models into the SRGAN framework to improve efficiency and performance.

Models

The following generator models are investigated in this study:

  • ESPCN: Efficient Sub-Pixel Convolutional Neural Network
  • FSRCNN: Fast Super-Resolution Convolutional Neural Network
  • IDN: Information Distillation Network
  • SRResNet: Super-Resolution Residual Network (baseline)

Dataset

The models are trained and evaluated on the DIV2K dataset, a widely used benchmark for SISR tasks. The dataset consists of high-quality images with diverse contents and realistic degradations.

Experimental Setup

The experiments are conducted using the following setup:

  • Pre-training of generator models for 400 epochs
  • GAN training for 2,000 epochs
  • Image cropping to 128x128 patches for augmentation
  • Evaluation metrics: PSNR and SSIM
  • Testing datasets: Set5 and Set14

Results

A qualitative comparison of the results can be found here.

Usage

To train and evaluate the models, follow these steps:

  1. Clone the repository: git clone https://github.com/sephiroth7712/SISR-GAN-Variants.git
  2. Install the required dependencies: pip install -r requirements.txt
  3. Prepare the dataset: Download the DIV2K dataset and place it in the data/ directory
  4. Train the models:
    python3 train.py --model_name espcn --crop_size 128 --upscale_factor 4 --num_epochs 8000 --warmup_batches 5000
  5. Evaluate the models:
    python3 test.py --model_name espcn --upscale_factor 4 --ckpt ./path/to/model/checkpoint.pth --image_name ./path/to/image.png

Acknowledgements

We would like to acknowledge the following repositories for their valuable code contributions:

sisr-gan-variants's People

Contributors

sephiroth7712 avatar gurseeratkaur02 avatar

Watchers

Kostas Georgiou avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.