GithubHelp home page GithubHelp logo

killsking / sketchyscenecolorization Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sketchyscene/sketchyscenecolorization

0.0 1.0 0.0 6.47 MB

Language-based Colorization of Scene Sketches. (SIGGRAPH Asia 2019)

Home Page: https://sketchyscene.github.io/SketchySceneColorization/

License: MIT License

Python 100.00%

sketchyscenecolorization's Introduction

SketchySceneColorization - SIGA2019

This repository hosts the datasets and the code for the SketchyScene Colorization system (SIGGRAPH Asia 2019). Please refer to our paper for more information: Language-based Colorization of Scene Sketches.

examples

Paper | Supplementary Material | Project Page

Outline

Requirements

  • Python 3
  • Tensorflow (>= 1.3.0)
  • scipy
  • PIL
  • skimage

Preparations

  • Please follow the instructions in the next three sections to download the pre-trained models and place them in the right directories.

Instance Matching

For the details of MATCHING dataset and the code, please refer to the Instance_Matching directory.

Foreground Instance Colorization

For the details of FOREGROUND dataset and the code, please refer to the Foreground_Instance_Colorization directory.

Background Colorization

For the details of BACKGROUND dataset and the code, please refer to the Background_Colorization directory.

The Whole Pipeline

Our system allows users to colorize the sketches through language instructions. If the result is not satisfactory, users can also withdraw the last instruction.

๐Ÿ”ฅ We have provided some test examples in examples directory.

  1. To colorize a sketch, run the command like:

    python3 sketchyscene_colorization_main.py --image_id 9996 \
                                              --instruction 'the bus is orange with gray windows'
    
    • Set image_id to the sketch you want.
    • Try other instructions by changing the instruction.

    You will see the results in outputs directory.

  2. To withdraw the last instruction, run the command like:

    python3 sketchyscene_colorization_main.py --command 'withdraw' --image_id 9996
    

    See what happens in outputs directory :)

Citation

Please cite the corresponding paper if you found the datasets or code useful:

@article{zouSA2019sketchcolorization,
  title = {Language-based Colorization of Scene Sketches},
  author = {Zou, Changqing and Mo, Haoran and Gao, Chengying and Du, Ruofei and Fu, Hongbo},
  journal = {ACM Transactions on Graphics (Proceedings of ACM SIGGRAPH Asia 2019)},
  year = {2019},
  volume = 38,
  number = 6,
  pages = {233:1--233:16}
}

sketchyscenecolorization's People

Contributors

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