Giter Club home page Giter Club logo

sketch-to-face-using-multi-gans's Introduction

Sketch-to-Face-using-Multi-GANs

The project involves converting a sketch image to a real life face like image using a series of GANs (Generative Adversarial Network) models. Contextual GANs, GFPGANs and DeOldify were used to implement our model which was hosted over Anvil server.

Steps to implement :

Step 1

Train the model for Contextual GANs and save them. For the code of training the model, you can refer to this link Sketch to Face Code. The code doesn't support Python 3.10 so I have made changes and uploaded the updated Python files in the current repository for referral.

Step 2

Once the model is trained, save it in an H5 file as per the code. The training takes months over a CPU so it's suggested to use GPUs or TPUs to train. Save the H5 file over your google drive which you can refer to your colab notebook.

Step 3

Fire up the colab notebook. Run all imports and installations including accessing h5 model from google drive.

Step 4

Alterations in the notebook. gfpgan_inference.py file present in the GFPGANs folder after github pull command needs to be edited. The replacement of the specific code is provided towards the end in the colab notebook.

Step 5

Open Anvil. Link to colab notebook . Tutorial link which helped me - Sample Anvil article. You can also refer to the official documentations .


## Layers of Processing:

f-042-01-sz1 Screenshot 2022-04-27 at 2 19 16 AM Screenshot 2022-04-27 at 2 37 33 AM Screenshot 2022-04-27 at 2 43 04 AM

Actual Face:
f-042-01

Evaluation

We used two metrics in our method of multigan.
Structural Similarity Index Measure and L2-Normalization score

Structural Similarity Index Measure : 0.7804028372700662

L2-Normalization Score : 93.7520664666667

sketch-to-face-using-multi-gans's People

Contributors

0sparsh2 avatar

Stargazers

 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.