Coder Social home page Coder Social logo

breast_sr's Introduction

Face-Super-Resolution

Face super resolution based on ESRGAN (https://github.com/xinntao/BasicSR)

Results

INPUT & AFTER-SR & GROUND TRUTH

result

Usage

Train

  1. Run python gen_lr_imgs.py to get the face imgs with low resolution and pool qualities

  2. Set the dir in train.py

hr_path: The path list of imgs with high resolution.

lr_path: The path of imgs with low resolution.

  1. Run python train.py

Pretrained models

  1. Dlib alignment shape_predictor_68_face_landmarks.dat

(https://pan.baidu.com/s/19Y-AYnXs6ubIh4vlkyvqbQ)

(https://drive.google.com/open?id=1u3h3nX5f_w-HJV8Nd1zwqc3uTnVja5Ol)

  1. Generator weights

90000_G.pth

(https://pan.baidu.com/s/14ITkNz_t0E7hRv0-tTAjhA)

(https://drive.google.com/open?id=1CZkLZPtbJepgksCM93MvsY7NgqnEZSvk)

90000_G.pth (The last activation in G is linear, clearer)

90000_D.pth

(https://pan.baidu.com/s/1-gRy1xw5h95_ie0NfBbDlw password:6him)

(https://drive.google.com/file/d/1zX9dbCu9lFu_SvRCvPIWnwJUUGUrZUhk/view?usp=sharing)

Maybe you need it to finetune the model?

200000_G.pth

(https://pan.baidu.com/s/1Osge_4JjPyvG5Xfnbe9KVA)

(https://drive.google.com/open?id=1B6BQu5Qk8eIu8MGTWJHnJxaxY1zCqQEt)

200000_G.pth (The last activation in G is tanh)

Test

  1. Download 'shape_predictor_68_face_landmarks.dat' and '90000_G.pth'

  2. Set 'pretrain_model_G' in test.py

  3. RUN python test.py

conduct

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.