Skip to main content

Transformer based embeddings for Wasserstein Distances

Project description

WassersteinWormhole

Embedding point-clouds by presering Wasserstein distances with the Wormhole.

This implementation is written in Python3 and relies on FLAX, JAX, & JAX-OTT.

To install JAX, simply run the command:

pip install --upgrade "jax[cuda12_pip]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html

And to install WassersteinWormhole along with the rest of the requirements:

pip install wassersteinwormhole

And running the Womrhole on your own set of point-clouds is as simple as:

from wassersteinwormhole import Wormhole 
WormholeModel = Wormhole(point_clouds = point_clouds)
WormholeModel.train()
Embeddings = WormholeModel.encode(WormholeModel.point_clouds, WormholeModel.masks)

For more details, follow tutorial at https://wasserstienwormhole.readthedocs.io.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wassersteinwormhole-0.3.3.tar.gz (13.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wassersteinwormhole-0.3.3-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

Details for the file wassersteinwormhole-0.3.3.tar.gz.

File metadata

  • Download URL: wassersteinwormhole-0.3.3.tar.gz
  • Upload date:
  • Size: 13.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.13.5 Linux/6.11.0-1018-azure

File hashes

Hashes for wassersteinwormhole-0.3.3.tar.gz
Algorithm Hash digest
SHA256 cba9a522e13c41953b51d730ae005e7704ab0994a97815eebcdc37c3b7888420
MD5 cca7ad3fce44601c2c0d2b6897f0c39b
BLAKE2b-256 4bb8f9e912e10c14430b003654ecaf42049b7d65e6ac754b9012c42b0b30f1f3

See more details on using hashes here.

File details

Details for the file wassersteinwormhole-0.3.3-py3-none-any.whl.

File metadata

  • Download URL: wassersteinwormhole-0.3.3-py3-none-any.whl
  • Upload date:
  • Size: 15.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.13.5 Linux/6.11.0-1018-azure

File hashes

Hashes for wassersteinwormhole-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a3d5139f0d61046e5a8086e2e7d6db1fb1da66c63c7c31c7b431f1e230b68ac1
MD5 2f446c282d61394d07354ce1f58b6022
BLAKE2b-256 f88c1046008dd29ecfc2bd4fd103a929df8f8a38f9e33c6158a93ec332f284fe

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page