• Stars
    star
    283
  • Rank 146,066 (Top 3 %)
  • Language Cuda
  • Created over 5 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

PyTorch Wrapper for Earth-Mover-Distance (EMD) for 3D point cloud regression

PyTorch Wrapper for Point-cloud Earth-Mover-Distance (EMD)

Dependency

The code has been tested on Ubuntu 16.04, PyTorch 1.1.0, CUDA 9.0.

Usage

First compile using

    python setup.py install

Then, copy the lib file out to the main directory,

    cp build/lib.linux-x86_64-3.6/emd_cuda.cpython-36m-x86_64-linux-gnu.so .

Then, you can use it by simply

    from emd import earth_mover_distance
    d = earth_mover_distance(p1, p2, transpose=False)  # p1: B x N1 x 3, p2: B x N2 x 3

Check test_emd_loss.py for example.

Author

The cuda code is originally written by Haoqiang Fan. The PyTorch wrapper is written by Kaichun Mo. Also, Jiayuan Gu provided helps.

License

MIT

More Repositories

1

partnet_dataset

PartNet Dataset Official Release Repo
Python
349
star
2

structurenet

StructureNet: Hierarchical Graph Networks for 3D Shape Generation
Jupyter Notebook
258
star
3

SpatialTransformerLayer

Protocol Buffer
181
star
4

where2act

Where2Act: From Pixels to Actions for Articulated 3D Objects
Python
99
star
5

partnet_anno_system

PartNet 3D Web-based Shape Parts Annotation System
JavaScript
90
star
6

partnet_seg_exps

PartNet Shape Segmentation Experiments Code Repo
Python
68
star
7

pt2pc

PT2PC: Learning to Generate 3D Point Cloud Shapes from Part Tree Conditions
Jupyter Notebook
46
star
8

PanoramaImageViewer

Panorama Image Viewer and Cropper
Python
36
star
9

structedit

StructEdit: Learning Structural Shape Variations
Jupyter Notebook
36
star
10

o2oafford

O2O-Afford: Annotation-Free Large-Scale Object-Object Affordance Learning (CoRL 2021)
Python
32
star
11

AdobeIndoorNav

Repository of data and tools for the AdobeIndoorNav dataset
Python
32
star
12

ogn

CS 468 Final Project: Implement more caffe layers to do OGN-based auto-encoder and GAN experiments
C++
11
star
13

Facial-Recognition

Facial Expression Classification
Python
10
star
14

simple_nodejs_userstudy

Simple NodeJs Web-based User Study Interface for Researchers
JavaScript
8
star
15

psg_pytorch

PointSetGen PyTorch Implementation
Python
8
star
16

stanford-cs348n-assignment1-winter22

Python
4
star
17

caffe

adding Spatial Transformer Layer
C++
3
star
18

stanford-cs348n-assignment3-winter22

Python
2
star
19

blender_render_view_centric_pts

blender_render_view_centric_pts
Python
2
star
20

deepdream

Google DeepDream
Python
1
star
21

mycaffe

C++
1
star
22

gpgpu-sim

Computer System(1)'s final project, to modify gpgpu-sim's register file's latency
C++
1
star
23

deep_learning_glossary

Simple, opinionated explanations of various things encountered in Deep Learning
1
star