Skip to content

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

License

Notifications You must be signed in to change notification settings

sanjay035/Sketch2Color-anime-translation

Repository files navigation

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!! 😃

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published