GithubHelp home page GithubHelp logo

jacobwjs / deepsim Goto Github PK

View Code? Open in Web Editor NEW

This project forked from eliahuhorwitz/deepsim

0.0 0.0 0.0 6.5 MB

Official PyTorch implementation of the paper: “Deep Single Image Manipulation”.

Home Page: http://www.vision.huji.ac.il/deepsim

Python 99.27% Shell 0.73%

deepsim's Introduction

DeepSIM

Official PyTorch implementation of the paper: "Deep Single Image Manipulation".

Results

SuperPrimitive2Image

Image2VideoFrames

Getting Started

Training

  • Train a model at 640 x 640 resolution (bash ./scripts/train.sh):
#!./scripts/train.sh
python3.7 train.py --dataroot ./datasets/face --name DeepSIM --niter 8000 --niter_decay 8000 --label_nc 0 --no_instance --tps_aug 1 --apply_binary_threshold 1
  • To view training results, please checkout intermediate results in ./checkpoints/DeepSIM/web/index.html.

Training with your own dataset

  • For binary training images (i.e. edge maps) use --apply_binary_threshold 1, to ensure that the edges input is indeed binary (during both training and inference), for segmentation maps use --apply_binary_threshold 0, you may also use --edge_threshold to control the threshold.
  • For TPS augmentations use --tps_aug 1, this will train the image with a new random TPS warp every epoch.
  • See options/train_options.py and options/base_options.py for all the training flags; see options/test_options.py and options/base_options.py for all the test flags. See pix2pixHD for further details.

Testing

  • Test the model (bash ./scripts/test.sh):
#!./scripts/test.sh
python3.7 test.py --dataroot ./datasets/face --name DeepSIM --label_nc 0 --no_instance --apply_binary_threshold 1 --tps_aug 0

The test results will be saved to a html file here: ./results/DeepSIM/test_latest/index.html.

More examples can be found in the scripts directory.

Citation

If you find this useful for your research, please use the following.

@misc{vinker2020deep,
    title={Deep Single Image Manipulation},
    author={Yael Vinker and Eliahu Horwitz and Nir Zabari and Yedid Hoshen},
    year={2020}, 
    eprint={2007.01289},
    archivePrefix={arXiv},
}

Acknowledgments

This code borrows heavily from pix2pixHD.

deepsim's People

Contributors

eliahuhorwitz avatar yael-vinker avatar yedidh 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.