Skip to content

Code for Photo-Sketching: Inferring Contour Drawings from Images

License

Notifications You must be signed in to change notification settings

Genggg/PhotoSketch

 
 

Repository files navigation

Inferring Contour Sketches from Images

ENGN2560 - Computer Vision

Final Project (May, 2019)

Teaser

Dataset

NOTE: Please download and extract the dataset under directory PhotoSketch/

Setting up on Brown CCV

  1. Load Anaconda3-5.2.0
module load anaconda/3-5.2.0
  1. One-line installation (with Conda environments)
conda env create -f environment.yml
  1. Activate the environment
source activate sketch

Running Instructions

NOTE: All srcipts should be executed under directory PhotoSketch/

Train model

sbatch cuda.sh

Test model

  1. Request a GPU node
interact -n 16 -m 16g -q gpu -g 1
  1. Run the test script
sh scripts/test_pretrained.sh

Citation

If you use the code or the data for your research, please cite the paper:

@article{LIPS2019,
  title={Photo-Sketching: Inferring Contour Drawings from Images},
  author={Li, Mengtian and Lin, Zhe and M\v ech, Radom\'ir and and Yumer, Ersin and Ramanan, Deva},
  journal={WACV},
  year={2019}
}

Acknowledgement

This code is based on an old version of pix2pix.

About

Code for Photo-Sketching: Inferring Contour Drawings from Images

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 97.0%
  • Shell 1.5%
  • Batchfile 1.5%