Git Product home page Git Product logo

offfahad / human-face-sketch-to-real Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 13.22 MB

This system provides the facility to convert roughly hand-drawn humam face sketch image into a realistic face image by using image generative AI in a real-time.

Kotlin 0.01% Swift 0.13% Objective-C 0.01% Dart 6.27% CMake 0.99% C++ 1.23% C 0.07% HTML 0.15% Jupyter Notebook 91.09% Python 0.05%
ai canvas cnn deep-learning drawing-app firebase flutter gans-models getx image-to-image-translation mvc-architecture nueral-networks

human-face-sketch-to-real's Introduction

Sketch2Real: A Deep Learning-Powered Image Translation Application

Introduction

Sketch2Real is a innovative image translation application which I developed for my final year project of BS Computer Science degree. All the project documentation and implementation of coding was made by a single developer, demonstrating comprehensive skills in machine learning, mobile application development, and backend integration.

Project Overview

Sketch2Real leverages state-of-the-art deep learning techniques, specifically Generative Adversarial Networks (GANs) and the Image-To-Image Translation Alogorithm, to translate hand-drawn human face sketches into realistic images. The application targets both mobile and web platforms, offering users an intuitive and interactive interface for creating lifelike portraits from rough sketches.

Key Features

  • Advanced Deep Learning Model: The heart of Sketch2Real is a deep learning model trained on a custom dataset which I made by myself comprising approximately 5000 samples of human face sketches and their corresponding real images and all human faces images are AI Generted (No person exists in real life). The model has been trained for over 10,000 epochs, ensuring exceptional accuracy and realism in image translation. More epochs more accurate results in this model arcitecture.

  • Cross-Platform Compatibility: Built using the Flutter framework, Sketch2Real seamlessly caters to both mobile and web users, providing a consistent user experience across different devices and platforms.

  • Backend Infrastructure: The project incorporates a robust RESTful API developed with Flask, enabling seamless communication between the application frontend and the deep learning model. This backend infrastructure ensures efficient handling of user requests and data transmission during the image translation process.

  • User-Friendly Interface: Sketch2Real boasts an intuitive and visually appealing user interface, allowing users to effortlessly draw sketches, upload images, and interact with the application's various features. The interface supports real-time sketch editing, enabling users to refine their creations on the fly.

  • Authentication and Security: Firebase authentication is integrated into Sketch2Real, ensuring secure user login and data privacy. User authentication mechanisms provide a seamless and secure experience for accessing the application's features and functionalities.

  • State Management and Performance Optimization: The application leverages the GetX library for efficient state management, optimizing performance and resource utilization. This approach ensures smooth and responsive user interactions, even when handling complex image processing tasks.

UI Of The Application

Onboarding Screens

Onboarding Screens

Login and Sign Up Screens

Login and Sign Up Screens

Forgot Password and OTP Screens

Forgot Password and OTP Screens

Home Screen (Draw Sketch Like This And Make It Into Realistic Face Image)

5c345f034d3fe947a5eaa2a733c30e097abd6a4a-imageonline co-merged

Edit Profile and Drawing Practice Screen

WhatsApp Image 2024-05-10 at 21 25 48_11a8484b-imageonline co-merged

Model Training Results

Test Dataset Images

20epochs 100Epochs 200Epochs 300Epochs 600Epochs 800Epochs 1500Epochs 1800Epochs 2500Epochs 3000Epochs 3500Epochs 4500Epochs 5000Epochs 7500Epochs 10000Epochs

Unseen Imgae Result

I try to draw my face sketch and give it to model and results was very accurate and mind blowing!

10000Epochs

Credits

  • I took the model architecture concept from this paper named as "Image-To-Image Translation With Conditional Generative Adversarial Neural Networks" from https://arxiv.org/abs/1611.07004 because they have provided a commom framework you just have to change the dataset.
  • I trained my model on Google Colab around for 3 months just on training phase due to limited GPU computing units even on the premium subscription.
  • The frontend was also very time taking task due to drawing concepts.
  • If you need the full trained model and dataset which is used in my project you can contact me :)
  • Gmail: [email protected]

human-face-sketch-to-real's People

Contributors

offfahad avatar

Stargazers

Koder avatar  avatar  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.