GithubHelp home page GithubHelp logo

tianxinhuang / caloss Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 0.0 453 KB

The TF codes for Learning to Measure the Point Cloud Reconstruction Loss in a Representation Space[CVPR'23]

Python 58.81% Makefile 0.28% C++ 22.01% Shell 2.28% Cuda 16.61%

caloss's Introduction

CALoss

[CVPR'23] The codes for Learning to Measure the Point Cloud Reconstruction Loss in a Representation Space

Environment

  • TensorFlow 1.13.1
  • Cuda 10.0
  • Python 3.6.9
  • numpy 1.14.5

We also provide an available conda environment (lcd.yaml) in this repo. Please run:

conda env create -f caloss.yaml

Dataset

The adopted ShapeNet Part dataset is adopted following FoldingNet, while the ModelNet10 and ModelNet40 datasets follow PointNet. Other datasets can also be used. Just revise the path by the (--filepath) parameter when training or evaluating the networks. The files in (--filepath) should be organized as

    <filepath>
    ├── <trainfile1>.h5 
    ├── <trainfile2>.h5
    ├── ...
    ├── train_files.txt
    └── test_files.txt

where the contents in (train_files.txt) or (test_files.txt) should include the directory of training or testing h5 files, such as:

    train_files.txt
    ├── <trainfile1>.h5
    ├── <trainfile2>.h5
    ├── ...

We also provide the processed datasets in Google Drive. You can just download, unzip them, and just set filepath to one of the dataset paths.

Usage

  1. Preparation
cd ./tf_ops
bash compile.sh
  1. Train

For the reconstruction task,

Python3 vv_cae.py

Note that the paths of data should be edited through the (--filepath) parameter according to your setting. For example, if we use the download dataset (./objdata/ShapeNet_part), the training command would be

Python3 vv_cae.py --filepath ./objdata/ShapeNet_part
  1. Test

For the evaluation of reconstruction errors,

Python3 vvae_eva.py 

The trained weight files should be provided by the (--savepath) parameter to evaluate the performances.

Here, we also provide weights of the reconstruction network AE pre-trained on ShapeNet Part dataset. To evaluate its performance, just download and unzip it, then change the savepath to its folder. If the dataset and weights are put in (./objdata/ShapeNet_part) and (./pnae), respectively, the command would be

Python3 vvae_eva.py --filepath ./objdata/ShapeNet_part --savepath ./pnae

caloss's People

Contributors

tianxinhuang avatar

Stargazers

小白白学习 avatar Zhengbo Wang avatar

Watchers

Kostas Georgiou avatar 小白白学习 avatar  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.