Giter Site home page Giter Site logo

jafirdon / face_restoration_deploy_flask Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 1.0 10.89 MB

I have developed a Flask application for GFP-GAN and run it on flask-ngrok. GFP-GAN is AI practical algorithm for real-world face restoration.

License: Other

HTML 2.56% Python 47.86% CSS 48.48% JavaScript 0.41% Procfile 0.01% Jupyter Notebook 0.68%
ai bootstrap deployment face-restoration flask gfpgan python pytorch

face_restoration_deploy_flask's Introduction

face_restoration_deploy_flask

Intrduction

I have developed a Flask application for GFP-GAN and run it on flask-ngrok. GFP-GAN is AI practical algorithm for real-world face restoration. It can be used to restore your old photos or enhance AI-generated faces. It leverages rich and diverse priors encapsulated in a pre-trained faces GAN (Generative Adversarial Network) for blind face restoration.

Source: Official Link

Installation

First, you need to clone the repo.

git clone https://github.com/JafirDon/face_restoration_deploy_flask.git
cd face_restoration_deploy_flask

Install dependent packages. run the following command

pip install basicsr
pip install facexlib

pip install -r requirements.txt

python setup.py develop

pip install realesrgan

If you run on the Flask-Ngrok, run the following command.

pip install pyngrok==4.1.1
pip install flask_ngrok

ngrok authtoken <your_auth_token>

Getting Started

First, download the pre-trained model

wget https://github.com/TencentARC/GFPGAN/releases/download/v1.3.0/GFPGANv1.3.pth -P experiments/pretrained_models

To run the code

python run.py

Tutorial

Demo



License

MIT License


Thank you

face_restoration_deploy_flask's People

Contributors

jafirdon avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

nativeai3917

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.