Code Monkey home page Code Monkey logo

hw4's Introduction

Introduction

The goal of this project is to upscale and improve the quality of low resolution images.

Data Directory

 +- VRDL_HW4
    +- models
        +- checkpoint_srresnet.pth.tar
        +- best_checkpoint_srresnet.pth.tar
    +- dataset
        +- testing_lr_images
            +- testing_lr_images
                +- 00.png
                +- 01.png
                ...
                +- 13.png
        +- training_hr_images
            +- training_hr_images
                +- 2092.png
                +- 8049.png
                +- 8143.png
                ...
    datasets.py
    eval.py
    model.py
    split_train_val.py
    test.py
    train.py
    utils.py

How to train

  1. Download the dataset: (I divide dataset into train and validation data)
    https://drive.google.com/file/d/1n796E-LuV1lxqtXJvYgGQIKCWLpN5deH/view?usp=sharing
 python train.py

Use my model & generate the answer. (high-resolution image)

Use the inference.ipynb on colab to generate the answer: https://colab.research.google.com/drive/1WwW7anJiJ9tDxJ93iKFvCDg9DRxixXYJ#scrollTo=4jL5aZH-2Jtu
You only need to cleck all the cells and you can get the output images in high-resolution image folder

My PSNR score: 27.4716 with 2100 epochs (training time 11hours 40mins)
image

Reference

https://blog.csdn.net/qianbin3200896/article/details/104181552

hw4's People

Contributors

kappamoss avatar

Watchers

 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.