Skip to main content

Open-source dataset curation with hyperbolic embeddings visualization

Project description

HyperView

Open-source dataset curation + embedding visualization (Euclidean + Poincaré disk)

License: MIT Ask DeepWiki

HyperView Screenshot
Watch the Demo Video


Features

  • Dual-Panel UI: Image grid + scatter plot with bidirectional selection
  • Euclidean/Poincaré Toggle: Switch between standard 2D UMAP and Poincaré disk visualization
  • HuggingFace Integration: Load datasets directly from HuggingFace Hub
  • Fast Embeddings: Uses EmbedAnything for CLIP-based image embeddings

Quick Start

Docs: docs/datasets.md · docs/colab.md · CONTRIBUTING.md · TESTS.md

Installation

git clone https://github.com/Hyper3Labs/HyperView.git
cd HyperView

# Install with uv
uv venv .venv
source .venv/bin/activate
uv pip install -e ".[dev]"

Run the Demo

hyperview demo --samples 500

This will:

  1. Load 500 samples from CIFAR-100
  2. Compute CLIP embeddings
  3. Generate Euclidean and Poincaré visualizations
  4. Start the server at http://127.0.0.1:6262

Python API

import hyperview as hv

# Create dataset
dataset = hv.Dataset("my_dataset")

# Load from HuggingFace
dataset.add_from_huggingface(
    "uoft-cs/cifar100",
    split="train",
    max_samples=1000
)

# Or load from local directory
# dataset.add_images_dir("/path/to/images", label_from_folder=True)

# Compute embeddings and visualization
dataset.compute_embeddings(model="openai/clip-vit-base-patch32")
dataset.compute_visualization()

# Launch the UI
hv.launch(dataset)  # Opens http://127.0.0.1:6262

Google Colab

See docs/colab.md for a fast Colab smoke test and notebook-friendly launch behavior.

Save and Load Datasets

# Save dataset with embeddings
dataset.save("my_dataset.json")

# Load later
dataset = hv.Dataset.load("my_dataset.json")
hv.launch(dataset)

Why Hyperbolic?

Traditional Euclidean embeddings struggle with hierarchical data. In Euclidean space, volume grows polynomially ($r^d$), causing Representation Collapse where minority classes get crushed together.

Hyperbolic space (Poincaré disk) has exponential volume growth ($e^r$), naturally preserving hierarchical structure and keeping rare classes distinct.

Euclidean vs Hyperbolic

Contributing

Development setup, frontend hot-reload, and backend API notes live in CONTRIBUTING.md.

Related projects

References

License

MIT License - see LICENSE for details.

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

hyperview-0.1.1.tar.gz (605.7 kB view details)

Uploaded Source

Built Distribution

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

hyperview-0.1.1-py3-none-any.whl (636.3 kB view details)

Uploaded Python 3

File details

Details for the file hyperview-0.1.1.tar.gz.

File metadata

  • Download URL: hyperview-0.1.1.tar.gz
  • Upload date:
  • Size: 605.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for hyperview-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8c86c06423257aed3894c84d8c3211ce7892b1e7baddde4263c7a83a03e45325
MD5 8c8b1d71e379e8eac3dadf5a29870cdd
BLAKE2b-256 abe11ba637d7ad76c51a1ed099c0dbe6e3f4d56f31c86178b090c19ab1a0b54d

See more details on using hashes here.

File details

Details for the file hyperview-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: hyperview-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 636.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for hyperview-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e7e8f840eb5f2fc4e4bf171e575f8e8454af9364c4016692b172f784a6006df7
MD5 bae095cca0b8df23cb6172f149438269
BLAKE2b-256 f11b7518205d334a3b6c8d9971c73bf68c2a9e1d032325d10f43943bb18c8f88

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