Git Product home page Git Product logo

deepcolorization's Introduction

DeepColorization

Just another copy of interactive-deep-colorization. You can find decent pytorch code and paper there.
As a purpose of study, I wrote tensorflow version of it.
I want to write down what I learned and this might be helpful for someone in someday.

Actually I didn't run full training and just checked "model basically works".
And there are a lot of things to be changed. These are just for reference :p

Note

Here are things I learned and modified.

Batch normalization layer

In original model, they used CNN -> ReLU -> BatchNorm
But after some reading, CNN -> BatchNorm -> ReLU makes more sense to me so I tweaked it.
And because of that, I don't need to add bias at the end of layers. (because BatchNormLayer includes it)

Shortcut connection

U-net, which is basic model of original network, using concatenation for shortcut connection.
But they used conv+add rather than concat
I just noticed they are equivalent; you can find some more explanation here.

X110?

We allocates one byte for each LAB color elements(L,A,B). (range of -128 ~ 127)
But you can find they multiplying result(which is range of -1.0 ~ 1.0) by 110 rather than 128.
The reason of that is out of that range is considered as "imaginary part". You can find answer about it.

TODO

Seperate model and training code with save/load feature.
Write preprocessing code for input images. (like TFRecord?)

deepcolorization's People

Contributors

yellowisher avatar

Stargazers

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