Skip to content

AAC-Open-Source-Pool/Image-Upscaling

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Image Upscaling

Team Details

Team Number:

24AACR13

Senior Mentor:

Abhiram Dodda

Junior Mentor:

Siddharth Mahesh, Ekanth Sai

Team Member:

Hemanth Nag Bitra


Table of Contents


Introduction

This project focuses on Single Image Super-Resolution (SISR), utilizing the Enhanced Deep Super-Resolution (EDSR) model to upscale images by 4x. By leveraging deep learning techniques, it achieves high-quality image restoration with improvements measured using PSNR (Peak Signal-to-Noise Ratio) and SSIM (Structural Similarity Index).


Requirements

Package Version
Python 3.10.14
PyTorch 2.4.0
Torchvision 0.19.0
Pillow 10.3.0
Matplotlib 3.7.5
CUDA Toolkit 12.6

Installation and Usage

Follow these steps to set up the project and perform image upscaling:

Step 1: Clone the Repository

git clone https://github.com/AAC-Open-Source-Pool/Image-Upscaling

Step 2: Install requirements.txt

pip install -r requirements.txt

Step 3: To train the model yourself

1. Download the dataset from the given link, and place it appropriately in the dataset directory
2. Run training.ipynb
3. The model and plots will be saved to Models directory

Step 4: To upscale the images of your own

1. Place the model in "Models" directory
2. Place the set of images to upscale in "Input" directory
3. Run upscale.py
4. Find the upscaled images in "Upscaled" directory

Preview

The below are the images upscaled using the model:


Fig.1 (Left - Original, Right - Upscaled)



Fig.2 (Left - Original, Right - Upscaled)



Fig.3 (Left - Original, Right - Upscaled)

Contribution

This section provides instructions and details on how to submit a contribution via a pull request. It is important to follow these guidelines to make sure your pull request is accepted.

  1. Before choosing to propose changes to this project, it is advisable to go through the readme.md file of the project to get the philosophy and the motive that went behind this project. The pull request should align with the philosophy and the motive of the original poster of this project.
  2. To add your changes, make sure that the programming language in which you are proposing the changes should be the same as the programming language that has been used in the project. The versions of the programming language and the libraries(if any) used should also match with the original code.
  3. Write a documentation on the changes that you are proposing. The documentation should include the problems you have noticed in the code(if any), the changes you would like to propose, the reason for these changes, and sample test cases. Remember that the topics in the documentation are strictly not limited to the topics aforementioned, but are just an inclusion.
  4. Submit a pull request via Git etiquettes

About

This repository shows the implementation of edsr model for image super resolution tasks

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published