GithubHelp home page GithubHelp logo

sanjay035 / sketch2color-anime-translation Goto Github PK

View Code? Open in Web Editor NEW
111.0 3.0 23.0 61.65 MB

Given a simple anime line-art sketch the model outputs a decent colored anime image using Conditional-Generative Adversarial Networks (C-GANs) concept.

License: MIT License

Python 0.01% Jupyter Notebook 99.99%
deep-learning generative-adversarial-network image-synthesis image-processing-python implementation-of-research-paper implementation-from-scratch hacktoberfest hacktoberfest2020 hacktoberfest-2020

sketch2color-anime-translation's Introduction

Sketch2Color-anime-translation:

Given a simple line-art anime sketch the model should output a decent colored anime image using Conditional-Generative Adversarial Networks (C-GANs).

Implemented the anime sketch colorization using the reference(s) paper-1 below.

References:

[1] https://arxiv.org/abs/1705.01908

[2] https://machinelearningmastery.com

[3] https://github.com/soumith/ganhacks

Prerequisites:

  • Miniconda
  • Tensorflow 1.15
  • NVIDIA GPU (8G memory) + CUDA cuDNN

Installation:

  • Clone this repo:
> git clone https://github.com/sanjay235/Sketch2Color-anime-translation.git
> cd Sketch2Color-anime-translation
> conda env create -f environment.yml
  • Then activate the environment created and launch the jupyter:
> conda activate Sketch2ColorAnimeTranslation
> jupyter notebook

Dataset:

  • Download and extract the dataset to current directory.
  • Open an another anaconda prompt with same environment activated and run the pre-processing script as below,
> python DataPreprocessing.py

Training and testing:

  • For the training process refer the Sketch2Color_Anime.ipynb notebook.
  • For the evaluation on test data refer the final.ipynb notebook.

C-GAN Architecture:

C-GAN

Tensorboard logs:

Tensorboard

In progress training results:

At epoch 30,

result_epoch_30

At epoch 40,

result_epoch_40

At epoch 43,

result_epoch_43

Prediction on test sketches:

Sample_1

Sample_2

Contribute:

Correction & Contribution are always welcome!! ๐Ÿ˜ƒ

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.