Giter VIP home page Giter VIP logo

gcfsr's Introduction

๐Ÿ“– GCFSR: a Generative and Controllable Face Super Resolution Method Without Facial and GAN Priors

[Paper] โ€ƒ [Project Page] โ€ƒ [Demo]
Jingwen He, Wu Shi, Kai Chen, Lean Fu, Chao Dong
Bytedance, Shenzhen Institute of Advanced Technology, Chinese Academy of Sciences, Shanghai AI Laboratory, Shanghai, China.

Results


Update

  • 2022.11.21: Release inference code for blind face restoration.
  • 2022.03.23: This repo is created.

Dependencies and Installation

Installation

  1. Clone repo

    git clone https://github.com/hejingwenhejingwen/GCFSR
    cd GCFSR
  2. Install dependent packages

    pip install -r requirements.txt
    python setup.py develop

Inference

Inference for blind face restoration

python inference_gcfsr_blind.py --model_path experiments/pretrained_models/gcfsr_blind_512.pth --input inputs/sample 

Inference (TODO)

python inference_gcfsr.py --model_path experiments/ --scale 32 --input inputs/sample --output outputs/tmp

Training

We provide the training codes for GCFSR.

Procedures

  1. Training dataset preparation: FFHQ

  2. Validation dataset preparation: CelebA-val

python make_val_dataset.py --input datasets/celeba_val --output datasets/celeba_val_input

  1. Modify the configuration file options/train_gcfsr.yml accordingly.

  2. Training

python -m torch.distributed.launch --nproc_per_node=8 --master_port=22021 basicsr/train.py -opt options/train/train_gcfsr.yml --launcher pytorch

Model Zoo

Model Name Description

| gcfsr-512-blind | blind face restoration. | | gcfsr-1024 | Controllable face super resolution. |

BibTeX

@inproceedings{he2022gcfsr,
  title={GCFSR: a Generative and Controllable Face Super Resolution Method Without Facial and GAN Priors},
  author={He, Jingwen and Shi, Wu and Chen, Kai and Fu, Lean and Dong, Chao},
  booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  pages={1889--1898},
  year={2022}
}

๐Ÿ“ง Contact

If you have any question, please email [email protected].

gcfsr's People

Contributors

hejingwenhejingwen avatar j30206868 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.