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.7.tar.gz (18.8 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.7-py3-none-any.whl (23.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wassersteinwormhole-0.3.7.tar.gz
  • Upload date:
  • Size: 18.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.14.3 Linux/6.14.0-1017-azure

File hashes

Hashes for wassersteinwormhole-0.3.7.tar.gz
Algorithm Hash digest
SHA256 aa94b49b591e152274388648331a3df09ead55f6ac4a21612d37727cc6ab1d60
MD5 8ec4e981104d8bb4b93d4e92ebbe79fd
BLAKE2b-256 e6d9e9c74c3102be642a21c0e17722e50367278754d9605c1308af02f3d7cd27

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wassersteinwormhole-0.3.7-py3-none-any.whl
  • Upload date:
  • Size: 23.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.14.3 Linux/6.14.0-1017-azure

File hashes

Hashes for wassersteinwormhole-0.3.7-py3-none-any.whl
Algorithm Hash digest
SHA256 9458fdb9d6c8563592295d54f9e32b421282ec59c99ef77e406bff546d250afd
MD5 924f04ebc78d85ea845a3c30e24a53e1
BLAKE2b-256 cebd3792dd04bc55d6e6c92ce16d96bc5db5cb688e3767fa8342391c49be3aec

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