Coder Social home page Coder Social logo

cnfightingsjy / real-time-user-guided-colorization_pytorch Goto Github PK

View Code? Open in Web Editor NEW

This project forked from inkimage/real-time-user-guided-colorization_pytorch

0.0 0.0 0.0 422 KB

pytorch implementation of "Real-Time User-Guided Image Colorization with Learned Deep Priors"

Shell 1.58% Python 98.42%

real-time-user-guided-colorization_pytorch's Introduction

"Real Time User-guided Colorization with Learned Deep Priors" implemented in pytorch

This is a pytorch implementation of "Real-Time User-Guided Image Colorization with Learned Deep Priors" by Zhang et.al.

Getting Started

Prerequisites

torch==0.2.0.post4, torchvision==0.1.9 The code is written with the default setting that you have gpu. Cpu mode is not recommended when using this repository.

Installing and running the tests

Make sure you have cifar10 or CelebA downloaded in ./data. You can download it through by taking a look at my "download.sh" file

./data/CelebA
./data/Cifar10
./data/pts_in_hull.npy

first clone this repository

git clone https://github.com/sjooyoo/https://github.com/sjooyoo/real-time-user-guided-colorization_pytorch.git

then run train

python deep_color.py

to sample results you first need to run deep_color.py, which will automatically save models under a models folder that will be made in your root directory. I did not include pretrained models in this repository. The --model unet100.pkl below is a sample after 100 epochs. Change the command according to your model that you want to sample.

python sampling.py --model unet100.pkl

Results

Input black and white image

Predicted colorization output

Ground truth image

Note

This is not a complete implementation. I have implemented the global hints network but have yet to incorporate it into the main network.

Further work

  • global hints network

Acknowledgments

Original paper "Real-Time User-Guided Image Colorization with Learned Deep Priors"

real-time-user-guided-colorization_pytorch's People

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.