Giter VIP home page Giter VIP logo

memopainter-pytorch's Introduction

Coloring With Limited Data: Few-Shot Colorization via Memory Augmented Networks

Overview

An unofficial implementation of MemoPainter described in the paper using PyTorch.

Published in CVPR 2019, written by S. Yoo, H. Bahng, S. Chung, J. Lee, J. Chang and J. Choo

Requirement

  • Python 3.6.5
  • PyTorch 1.1.0
  • Pillow 5.1.0
  • numpy 1.14.5
  • scikit-image 0.15.0
  • scikit-learn 0.19.0
  • colorthief 0.2.1

Datasets

Pre-trained model

Important Configurations

All recommeded values for configurations are based on paper and supplementary material.

  1. --color_info : Should be 'RGB' or 'dist'. What you want to use as a color information for color feature.

  2. --color_feat_dim : If you use RGB color information, the option should be 30. If you use color distribution as a color information, the option should be 313.

  3. --mem_size : The memory size. It is remmended to set the memory size to 1.2 times the size of training set.

  4. --top_k : The parameter for computing the kNN with respect to cosine similarity. It is recommended to set --top_k to 32, if you use RGB color_info. If you use color distribution as color feature, to setting --top_k to 256 is recommended.

Train & Test

If you refer to run.sh in my repository, you can know how to train and test.

Experimental Results

Experimental results on Oxford102 dataset.

I randomly split the oxford102 dataset into a training set(80%) and a test set(20%)

You can download full experimental results on my oxford102 test set. Link

Input Result Ground Truth

Experimental results on Pokemon data. Test images are crawled from the internet

Input Result Ground Truth

Experimental results on Superhero data. Train images and test images are crawled from the internet.

Input Result Ground Truth

Comments

If you have any questions or comments on my codes, please email to me. [email protected]

References

[1]. https://github.com/awesome-davian/Text2Colors

  • The most parts of discriminator.py are borrowed from [1]

[2]. https://github.com/nilboy/colorization-tf

  • The parts for quantizing ab values into 313 color bins are borrowed from [2]

[3]. https://github.com/NVlabs/MUNIT

[4]. https://github.com/RUSH-LAB/LSH_Memory

memopainter-pytorch's People

Contributors

dongheehand avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

memopainter-pytorch's Issues

grammatical mistake

Hello here, thanks for your awesome work! and I noticed that there are certain grammatical mistake in run.sh, the second command line, you have written down 'genarator_model' instead of the right form'
generator_model'. hope you can make a correction when you are free.

progress on run time

If possible, can you please add verbose or add print (epoch) so that the user can view training progress on runtime. Everyone has a different computer and one needs to anticipate how long the training will take place. Especially when performing the training phase, such as epoch and steps needed to take in one epoch. I believe the best location is in mode.py file.

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.