Coder Social home page Coder Social logo

coms4995-project's Introduction

How to set up the cloud instance

Create an instance with the following specs:

  1. 6 vCPUs, 22.5 GB memory
  2. 1 x NVIDIA Tesla K80 GPU
  3. 500 GB Disk

Environment Specification

How to obtain the dataset on the instance

wget http://3dshapenets.cs.princeton.edu/3DShapeNetsCode.zip 

How to monitor GPU usage

nvidia-smi

References

How to do latent space interpolation:

After training a model to checkpoint K: Output some 3D models and their corresponding z vectors by doing (with iter 16400 as example):

python 3dgan_mit_biasfree.py --train False --ckpath models/biasfree_tfbn.ckpt-16400

This will make an npy array of the 3D models and another npy file of the z vectors that generated those models.

You will have to choose two 3D models to use. Then get their corresponding z vectors from the _zvectors.npy and use them as the 2 points in the interpolation.py code by editing the part:

zpath = r"chairs/save-16K_zvectors.npy" savename = 'interpolated_chairs_37_39' zvectors = np.load(zpath) #print(zvectors.shape) #Determined manually from plotting z1 = zvectors[37] z2 = zvectors[39]

This will output an array with 32 z vectors (using 32 since it is the batchsize in the tensorflow code). Now you will need to use those pre-made z vectors in the tensorflow code to generate 3D models from them, DO this:

python 3dgan_mit_biasfree.py --train False --ckpath models/biasfree_tfbn.ckpt-16400 --interpolatd_zs interpolated_chairs_37_39.npy

where the last argument is the path to the 32 z vectors for the interpolated trajectory.

Running this will output the 32 models in 3D.

Then run the script VisualizeGeneratorOutput.py on the output 3D models to visualize them and save as PNG's.

Finally, you can use the website gifmaker.me to make a GIF from the PNG's.

coms4995-project's People

Contributors

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