Giter Club home page Giter Club logo

z_gan's Introduction

Z-GAN

This is the PyTorch implementation of the color-to-voxel model translation presented on ECCV 2018.

The code is based on the PyTorch implementation of the pix2pix and CycleGAN.

If you use this code for your research, please cite:

@InProceedings{Kniaz2018,
author="Kniaz, Vladimir A. and
Knyaz, Vladimir V. and Fabio Remondino,
title={Image-to-Voxel Model Translation with Conditional Adversarial Networks},
booktitle={{Computer Vision -- ECCV 2018 Workshops",
year="2018}},
publisher={Springer International Publishing},
}

Prerequisites

  • Linux or macOS
  • Python 2 or 3
  • CPU or NVIDIA GPU + CUDA CuDNN

Getting Started

Installation

  • Install PyTorch and dependencies from http://pytorch.org
  • Install Torch vision from the source.
git clone https://github.com/pytorch/vision
cd vision
python setup.py install
pip install visdom
pip install dominate
  • Clone this repo:
git clone https://github.com/vlkniaz/Z_GAN

Z-GAN train/test

  • Go to the repo directory
cd Z_GAN
  • Download a Z-GAN dataset:
bash ./datasets/download_zgan_dataset.sh mini
  • Train a model:
bash scripts/train_zgan.sh
  • To view training results and loss plots, run python -m visdom.server and click the URL http://localhost:8097. To see more intermediate results, check out ./checkpoints/thermal_gan_rel/web/index.html
  • Test the model:
bash scripts/test_zgan.sh

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

Apply a pre-trained model (Z-GAN)

Download a pre-trained model with ./pretrained_models/download_zgan_model.sh.

  • For example, if you would like to download Z-GAN model on the mini dataset,
bash pretrained_models/download_zgan_model.sh Z_GAN
  • Download the mini datasets
bash ./datasets/download_zgan_dataset.sh mini
  • Then generate the results using
bash scripts/test_zgan_pretrained.sh
  • The test results will be saved to a html file here: ./results/Z_GAN_pretrained/test_latest/index.html.

z_gan's People

Contributors

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