Code Monkey home page Code Monkey logo

blind-face-super-resolution's Introduction

Decription of Files

srresnet_ffhq_300k.py: Config file of SRResNet model

sr_inference.py: Used to generate inferences with the trained model

20230421_034944.log: Training log file

20230421_034944.log: Training log data

loss.png: Training loss curve

psnr.png: PSNR on the validation set

AI6126_Project_2.pdf: Report of final solution

Third-party Libraries

Pytorch, MMEngine, MMCV

Usage

Training

Step 1: Install Pytorch

Step 2: Install MMCV by

pip3 install openmim mim install 'mmcv>=2.0.0'

Step 3: Install MMEditing by

git clone https://github.com/open-mmlab/mmediting.git cd mmediting pip3 install -e .

Step 4: Download the given dataset(train, val, test) and place it in the "mmediting/data" folder

Step 5: Place "srresnet_ffhq_300k.py" in the "mmediting/configs" folder

Step 6: Train the model by

python3 tools/train.py configs/srresnet_ffhq_300k.py

Inference

Step 1: Place "sr_inference.py" in the "mmediting/tools" folder

Step 2: Place "best_PSNR_iter_290000.pth" in the "mmediting/work_dirs/srresnet_ffhq_300k_L2" folder

Step 3: Predict HQ images on the 400 test images by

python3 tools/sr_inference.py configs/srresnet_ffhq_300k.py work_dirs/srresnet_ffhq_300k_L2/best_PSNR_iter_290000.pth data/test/LQ outputs/srresnet_ffhq_300k_L2/test

The predicted HQ images can now be found in the "mmediting/outputs/srresnet_ffhq_300k_L2/test" folder

blind-face-super-resolution's People

Contributors

chenxr35 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.