Git Product home page Git Product logo

shape-generation's Introduction

Shape-Generation

Introduction

This is Pytorch implementation of the paper on Shape Generation Using Spatially Partitioned Point Clouds.

Pre Requisites

  • Python 3.6
  • torch==1.0.1
  • torchvision==0.2.2
  • open3d
  • numpy
  • tqdm

Pre-Processing

  1. An initial dataset of 5000 points clouds is taken from ShapeNet meshes representing chairs.
  2. Each point cloud contains 1000 points and they are sampled using Poisson disk sampling.
  3. Each point cloud is centered at the origin, and the bounding box is normalized, so that the longest dimension spans [-0.5, 0.5].
  4. After getting the data, store it in a folder called 'shapenet-chairs-pcd'
  5. Run the pre-process file to order them using kd-tree, then get the bsis using pca and do itertive point order refinement.
python3 pre_process.py
  1. This will store the true coefficents of pca for the next step.

GAN Training

To train the model, run the following command:

python3 train.py 

Note: The argument paramemters have been set to their default values as mentioned in the paper.

Inference

For inference run the file:

python3 infer.py --model_path ./models/exp1/weights_50

Results

The initial point cloud after coloring them by index obtained by arraning in order using kd-tree is as shown below:

The resulting meshes after pca on true ground truth distrubtion is:

The new meshes generated using coefficients from GAN are as shown:

shape-generation's People

Contributors

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