GithubHelp home page GithubHelp logo

colorvae's Introduction

EECS442 21WN Final Project: Color-VAE

[Report] [Demo Video] [Slides]

sample ColorVAE

Environment setup

Please install survae first

pip install git+https://github.com/didriknielsen/survae_flows.git
# the install corresponding environment
conda create -n colorvae --file requirements.txt

Downlaod Dataset

  1. COCO train2017 & val2017 dataset Please extract to ./coco folder.

  2. Tiny imagenet provided on Kaggle

    kaggle datasets download -d akash2sharma/tiny-imagenet

    Please delete the duplicated folder in the zip file before training

Download Pre-trained Model

[Google Drive]

Demo

python predict.py --resume models/dil256-vae_model.pt --img_path par37351-teaser-story-big.jpg

Train

python main.py --img_size 256  --dataset COCO --lr 0.001 --exp_name dil256 --batch_size 32

Prediction

  1. For image output
python predict.py --img_size 256 --resume models/dil256-vae_model.pt --img_path coco/val2017 --sample_num 8 --separate
  1. For image output with VAE hint
python predict.py --img_size 256 --resume models/dil256-vae_model.pt --img_path coco/val2017 --sample_num 8 --separate --vae_hint
  1. For PNSR score
python predict.py --img_size 256 --resume models/dil256-vae_model.pt --img_path coco/val2017 --sample_num 8 --psnr

Performance

On COCO val2017 dataset

PSNR

ColorVAE No VAE ECCV16 SIGGRAPH17 w/o semantic pre-train w/ VAE hint
26.0008 24.6531 21.9863 25.6168 21.5979 27.0091

Rating

No VAE ECCV16 SIGGRAPH17 w/ VAE hint
3.555 3.188 3.546 3.691

colorvae's People

Contributors

zyayoung avatar xypb avatar

Stargazers

 avatar Ash avatar  avatar  avatar

Watchers

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