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 Open in HF Spaces Discord

HyperView Screenshot
Try the live demo on HuggingFace Spaces


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

Updates

Quick Start

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

Installation

uv pip install hyperview

Run HyperView

hyperview \
  --dataset cifar10_demo \
  --hf-dataset uoft-cs/cifar10 \
  --split train \
  --image-key img \
  --label-key label \
  --samples 500 \
  --model openai/clip-vit-base-patch32 \
  --geometry both

This will:

  1. Use dataset cifar10_demo
  2. Load up to 500 samples from CIFAR-10
  3. Compute CLIP embeddings
  4. Generate Euclidean and Poincaré visualizations
  5. Start the server at http://127.0.0.1:6262

You can also launch with explicit dataset/model/projection args:

hyperview \
  --dataset imagenette_clip \
  --hf-dataset fastai/imagenette \
  --split train \
  --image-key image \
  --label-key label \
  --samples 1000 \
  --model openai/clip-vit-base-patch32 \
  --method umap \
  --geometry euclidean

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.

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.

Try the live demo on HuggingFace Spaces→

Community

Weekly Open Discussion — Every Tuesday at 15:00 UTC on Discord

Join us to see the latest features demoed live, walk through new code, and get help with local setup. Whether you're a core maintainer or looking for your first contribution, everyone is welcome.

Contributing

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

Related projects

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: hyperview-0.2.0.tar.gz
  • Upload date:
  • Size: 613.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","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.2.0.tar.gz
Algorithm Hash digest
SHA256 81541ea169fd3d4bca5bf84e3b8c5a12f53101783fab158b30cb11fcd711073f
MD5 b27ed48b2aa6fa73c3bd326f69361f3d
BLAKE2b-256 ef92de160b34624f75a60aeababb4e1f8a65a6886ba2c1f796e5fd280fc45f38

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hyperview-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 643.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c11a8e9781bc463fea7ab9788873009557d02c9257a3a0787199c76a1078db2a
MD5 0e3ec16cb506251a3f949b77b616595f
BLAKE2b-256 968aecd134db4a5d5771913a54e08af3a620ea703b6c57d5019a47834641ed31

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