Giter Club home page Giter Club logo

image-colorization's Introduction

Image-Colorization

Running the Model

  1. Download Places365 to the Dataset directory.
  2. Extract places365_train_standard.txt from places365_train_standard.zip to the Dataset directory.
  3. Start training the model by running all the blocks in UNet_PatchGan_v4.ipnyb.
  4. To evaluate the model with new pictures, modify ckpt_path and img_path in the third and last blocks of Evaluate.ipnyb respectively.

To change the root directory of datasets, modify dataset.py on Line 8 and 34. Be sure to include places365_train_standard.txt in the new directory.

Things to Note

  1. The model is mainly based on PatchGan. A classifier and Convolution Block Attention Module (CBAM) are incorporated to improve the model's performance.
  2. For this model, pictures are represented in LAB color space. There are two main reasons why we utilize LAB instead of RGB: Given that the "L" channel can be used as input, the model only needs to generate and concatenate values in the "A" and "B" channels; on the other hand, it will be easier for the model to colorize images of varying size, since the rescaled "A" and "B" channels can be concatenated using the original "L" channel with no distortion in pictures.

image-colorization's People

Contributors

kliu513 avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

vonrafael

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.