Giter VIP home page Giter VIP logo

deep-unsupervised-pixelization's Introduction

Deep-Unsupervised-Pixelization

Paper

Deep Unsupervised Pixelization and Supplementary Material.
Chu Han^, Qiang Wen^, Shengfeng He*, Qianshu Zhu, Yinjie Tan, Guoqiang Han, and Tien-Tsin Wong. (^joint first authors)
ACM Transactions on Graphics (SIGGRAPH Asia 2018 issue), 2018.

Our teaser

Requirement

  • Python 3.5
  • PIL
  • Numpy
  • Pytorch 0.4.0
  • Ubuntu 16.04 LTS

Dataset

Training Dataset

Create the folders trainA and trainB in the directory ./samples/. Note that trainA and trainB contain the clip arts to be pixelized and pixel arts to be depixelized respectively.

Testing Dataset

Create the folders testA and testB in the directory ./samples/. Note that testA and testB contain the clip arts to be pixelized and pixel arts to be depixelized respectively.

Training

  • To train a model:
python3 ./train.py --dataroot ./samples --resize_or_crop crop --gpu_ids 0

or you can directly:

$ bash ./train.sh

You can check the losses of models in the file ./checkpoints_pixelization/loss_log.txt.
More training flags in the files ./options/base_options.py and ./options/train_options.py.

Testing

  • After training, all models have been saved in the directory ./checkpoints_pixelization/.
  • To test a model:
python3 ./test.py --dataroot ./samples --no_dropout --resize_or_crop crop --gpu_ids 0 --how_many 1 --which_epoch 200

or you can directly:

$ bash ./test.sh

More testing flags in the file ./options/base_options.py.
All testing results will be shown in the directory ./results_pixelization/.

Note

Since this proposed method has been used in commerce, we cannot release the pretrained model and training dataset.

Acknowledgments

Part of the code is based upon pytorch-CycleGAN-and-pix2pix.

Citation

@article{han2018deep,
  title={Deep unsupervised pixelization},
  author={Han, Chu and Wen, Qiang and He, Shengfeng and Zhu, Qianshu and Tan, Yinjie and Han, Guoqiang and Wong, Tien-Tsin},
  journal={ACM Transactions on Graphics (TOG)},
  volume={37},
  number={6},
  pages={1--11},
  year={2018},
  publisher={ACM New York, NY, USA}
}

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.