Giter Site home page Giter Site logo

artediting's Introduction

Modeling Artistic Workflows for Image Generation and Editing

[Project Page][Paper]

Pytorch implementation for our artwork generation and editing method. The proposed design can 1) model creation workflows for different types of artwork and 2) enable both the image generation and editing at different workflow stages.

Paper

Please cite our paper if you find the code or dataset useful for your research.

Modeling Artistic Workflows for Image Generation and Editing
Hung-Yu Tseng, Matt Fisher, Jingwan (Cynthia) Lu, Yijun Li, Vladimir (Vova) Kim, Ming-Hsuan Yang
European Conference on Computer Vision (ECCV), 2020

@inproceedings{tseng2020artediting,
  author = {Tseng, Hung-Yu and Fisher, Matthew and Lu, Jingwan and Li, Yijun and Kim, Vladimir and Yang, Ming-Hsuan},
  booktitle = {European Conference on Computer Vision},
  title = {Modeling Artistic Workflows for Image Generation and Editing},
  year = {2020}
}

Usage

Installation

Clone this repo:

git clone https://github.com/hytseng0509/ArtEditing
cd ArtEditing

Install packages:

conda create --name artediting python=3.6
conda activate artediting
conda install pytorch torchvision -c pytorch
pip install -r requirements.txt

Datasets

Download the face or anime datasets using the following script:

  • Set DATASET to face or anime
cd data
python download_dataset.sh DATASET
cd ..

Workflow Inference Training

We first train the workflow inference model.

python train_inference.py  --name face_inference --n_ep_separate 15 --n_ep_joint 15

Artwork Generation Training

Then we load the trained inference model and train the artwork generation model. We need 4 GPUs for batch size of 8.

python train_generation.py --gpu_ids 0,1,2,3 --name face --n_ep_separate 40 --n_ep_joint 15 --load_inference face_inference/30.pth

Learning-Based Regularization Training

Finally, for each workflow stage, we train the regularization for the input image reconstruction.

python train_regularization.py --load face/55.pth --name face_reg0 --reg_stage 0
python train_regularization.py --load face/55.pth --name face_reg1 --reg_stage 1

Testing

Generate reconsturction and random editing results:

python test.py --name face_results --load face/55.pth --reg_load face_reg0/500.pth,face_reg1/500.pth

The results can be found at results/face_results.

Notes

  • Part of this implementation is modified from BicycleGAN and MUNIT.
  • The dataset, model, and code are for non-commercial research purposes only.

artediting's People

Contributors

hytseng0509 avatar

Watchers

 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.