Giter Site home page Giter Site logo

lpi's Introduction

[ECCV 2022] Latent Partition Implicit with Surface Codes for 3D Representation

This repository contains the code to reproduce the results from the paper "Latent Partition Implicit with Surface Codes for 3D Representation".

Homepage |Paper | Supp

If you find our code or paper useful, please consider citing:

@inproceedings{LPI,
    title = {Latent Partition Implicit with Surface Codes for 3D Representation},
    author = {Chao, Chen and Yu-shen, Liu and Zhizhong, Han},
    booktitle = {European Conference on Computer Vision (ECCV)},
    year = {2022}
}

demo

Webp.net-gifmaker

Installation

We support python3, you can first create an virture environment called LPI_venv :

python -m venv LPI_venv
source LPI_venv/bin/activate

Then, to install the dependencies, run:

pip install -r requirements.txt

Next, for evaluation of the models, complie the extension modules, which are provided by Occupancy Networks. run:

python setup.py build_ext --inplace

To compile the dmc extension, you have to have a cuda enabled device set up. If you experience any errors, you can simply comment out the dmc_* dependencies in setup.py. You should then also comment out the dmc imports in im2mesh/config.py.

Finally, for calculating chamfer distance faster during training, we use the Customized TF Operator nn_distance, run:

cd nn_distance
./tf_nndistance_compile.sh

If you encounter any errors, please refer to the relevant instructions of PU-net and modify the compile scripts slightly.

Dataset

You can download our preprocessed ShapeNet dataset with the access code bycc.

  • samples_*: preprocessing data of ShapeNet (sample points and ground truth points).
  • centers_100_*: 100 centers sampled by fps algorithm for each object.
  • class_list: list of objects in each category of ShapNet.

Put all samples_* folders, centers_100_* folders or any of the categories you want to try, and class_list in data.

Training

Training and evaluating single 3d object:

./run.sh

Training and evaluating all 3d objects of a class:

./multi_run.sh

You can change the class_name in the script to another category of ShapeNet. And note that modify the number of for loops to the number of objects of the current category.

Evaluation

Evaluating single 3d object:

./test.sh

Evaluating all 3d objects of a class:

./multi_test.sh

lpi's People

Contributors

chenchao15 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

lpi's Issues

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.