Git Product home page Git Product logo

image-colorization's Introduction

image-colorization

The project aims to color black and white images via Machine Learning without any human supervision. More specifically, the project uses anime (One-Piece) manga data to train the colorization algorithm. The project is far from completion, and is being worked upon actively by me. The case of colorizing a black and white comic may seem impractical and not useful to some. But since the algorithm is trained only based on data, and without any domain knowledge of comics specifically, it should directly carry on to more useful cases, like colorizing historical photographs and likely cases. Also, colorizing manga and comics is a very hard and work-intensive tasks. Such an application, if it reaches current human level, can have many real-world use cases.

The following images show performance of model at its current training Left=(Black-White Input), Middle=(Colored Target), Right=(Predicted by Network) Left=(Black-White Input), Middle=(Colored Target), Right=(Predicted by Network) Left=(Black-White Input), Middle=(Colored Target), Right=(Predicted by Network)

Getting Started

This section describes how someone curious enough about this project can get themselves started on the project.

Prerequisites

For running the project, the system must have Python3 installed. Also, the project uses some standard python libraries like numpy, keras, tensorflow. The repository, however, does not contain the entire data that was used for training because of Github's size limit, and also to keep the repository light.

Description

There are two IPython notebooks in the project :- image-colorization.ipynb and image-colorization-tester.ipynb. Both are nearly identical. I myself use the first to train the model. However, for testing and checking how the trained models respond, I go to the second one. You will notice that the jupyter notebooks start with importing google.colab. That is because the project was done on google colab, which is a fantastic resource created by google for practitioners like me. However, if someone wishes to do the project at their local machine, they can always go ahead without the first and second code blocks in the notebook.

Future Plans for Work

After having gone through literature in this field, it seems that the best way to go around this problem is GANs. Using a mean-squared error on such problems discourages sharpness and high contrast colors in output images because it is an average of many different scenarios. However, GANs do not face this problem since they can solve multiodal output problems.

Contributing

Contributions from anyone interested in this project are welcome. As mentioned above, the repo does not contain full training data used by the project. For getting the training data, please write to me at [email protected].

image-colorization's People

Contributors

vaibhav369 avatar

Watchers

James Cloos 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.