Skip to content

Latest commit

 

History

History
64 lines (46 loc) · 1.54 KB

README.md

File metadata and controls

64 lines (46 loc) · 1.54 KB

APTBPS

Installation

Requirements

  • Python 3.x
  • scikit-learn
  • numpy
  • tqdm
  • KDEpy
  • scipy

pip installation

$ pip3 install git+https://github.com/rdimaio/aptbps

From source

Or, if you prefer, you can install it from source:

# Clone the repository
$ git clone https://github.com/rdimaio/aptbps

# Go into the aptbps folder
$ cd aptbps

# Install aptbps
$ python setup.py install

Usage

import aptbps
from bps import bps

# x is a batch of point clouds in the shape [n_clouds, n_points, n_dims]

# Original bps implementation
x_bps = aptbps.encode(x, bps_cel) 

# 2-partition triangle-gkde aptbps encoding
x_aptbps = aptbps.adaptive_encode(x, n_parts=2, bps_cell_type='dists')

# 8-partition comp-fftkde aptbps encoding
x_aptbps_fftkde = aptbps.adaptive_encode(x, n_parts=8, kde='fft', partitioning='comp', bps_cell_type='dists')

Resources

Contributing

Pull requests are welcome! If you would like to include/remove/change a major feature, please open an issue first.

Acknowledgement

BPS repository

License

This project is licensed under the MIT License - see the LICENSE file for details.