Skip to main content

Transformer based embeddings for Wasserstein Distances

Project description

WassersteinWormhole

Embedding point-clouds by preserving 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 pip install -U "jax[cuda12]” 

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

pip install wassersteinwormhole

And running the Wormhole 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.6.tar.gz (17.1 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.6-py3-none-any.whl (22.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for wassersteinwormhole-0.3.6.tar.gz
Algorithm Hash digest
SHA256 6ff6192c37517be40db913f1c7591a4db873c0b2e0c7a932121290cd8527ba44
MD5 63ecd7fb17616ef5e3ec82d51515dbda
BLAKE2b-256 38e5228a468570206728e8477a1eafa2278c959215df14b8e1bf1de87eb4bbe4

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for wassersteinwormhole-0.3.6-py3-none-any.whl
Algorithm Hash digest
SHA256 9d3d562283836fbe945c05d5e1686657b7f40d4b68adfb89a959d30070f99b28
MD5 42e39c389bf6f08a16f9c36d1d219f71
BLAKE2b-256 25965114f9628be413aa30b147c5df72352f0790db23759b572483681be25a28

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