Code Monkey home page Code Monkey logo

prgan's Introduction

Unsupervised 3D Shape Induction from 2D Views of Multiple Objects (3DV 2017)

Dependencies

The following dependencies can be installed through pip or your favorite package manager (apt, pacmam, etc)

  • Matplotlib
  • Numpy
  • Scipy
sudo pip install matplotlib numpy scipy

Our code also relies on Tensorflow. The easiest way to install it is probably using a [pip package (https://www.tensorflow.org/get_started/os_setup#pip_installation). If you want to use the GPU version (highly recommended), you also need to install CUDA and cuDNN.

Dataset

PrGAN training data consists of a set of grayscale images stored inside the data folder. This folder needs to be created in the same path where src folder is located (the main PrGAN directory). Inside the data data folder, you should place the images of your dataset in separate folders and name them accordingly. For example, if you want to use a dataset with airplane images you should save those images inside data/airplane. You can use different names for the folders, but the folder name is the name of the dataset.

The dataset is simply a collection of grayscale png files. There is no special naming convetion or annotation that needs to be followed.

Usage

Before executing PrGAN, you should create a results folder where the results will be stored. If you want to train the PrGAN on, for example, the airplane dataset during 25 epochs, you can just execute (from the main folder):

python src/PrGAN -d airplane --train -e 25

Results will be saved at each 50 iterations. You can have a good idea about the generated geometry by taking a look at the image files created. However, the geometry is saved in a series of volume.npy files. Only the last batch is saved. You can use a script called create_cubes.py to generate .obj files from the .npys:

python src/create_cubes.py "results/PrGANairplane/*.npy" 0.5

prgan's People

Contributors

matheusgadelha avatar tonyrui avatar amygao1997 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.