77</p >
88
99<p align =" center " >
10- <a href =" https://huggingface.co/collections/hyperview-org/hyper-models-67900e48542fa2ea29a26684 " >
11- <img src="https://img.shields.io/badge/🤗_Models-Hugging_Face -orange" alt="Hugging Face">
10+ <a href =" https://huggingface.co/mnm-matin/hyperbolic-clip " >
11+ <img src="https://img.shields.io/badge/🤗_Models-hyperbolic--clip -orange" alt="Hugging Face">
1212 </a >
1313 <a href =" LICENSE " >
1414 <img src="https://img.shields.io/badge/License-MIT-blue" alt="License: MIT">
2121
2222- ** Standardized access** to non-Euclidean embedding models
2323- ** Torch-free runtime** via ONNX (models published to Hugging Face Hub)
24- - ** Simple API** — ` load() ` and ` encode ()`
24+ - ** Simple API** — ` load() ` and ` encode_images ()`
2525
2626## Installation
2727
@@ -33,48 +33,57 @@ pip install hyper-models
3333
3434``` python
3535import hyper_models
36+ from PIL import Image
3637
3738# List available models
3839hyper_models.list_models()
39- # ['hycoclip-vit-s', 'hycoclip-vit-b', 'meru-vit-s', ... ]
40+ # ['hycoclip-vit-s', 'hycoclip-vit-b', 'meru-vit-s', 'meru-vit-b' ]
4041
4142# Load model (auto-downloads from Hugging Face Hub)
4243model = hyper_models.load(" hycoclip-vit-s" )
44+ model.geometry # 'hyperboloid'
45+ model.dim # 513
4346
44- # Encode images
45- embeddings = model.encode(images) # (B, D) ndarray
47+ # Encode PIL images
48+ images = [Image.open(" image.jpg" )]
49+ embeddings = model.encode_images(images) # (1, 513) ndarray
4650
47- # Metadata
48- model.geometry # 'hyperboloid'
49- model.dim # 512
51+ # Get model info
52+ info = hyper_models.get_model_info(" hycoclip-vit-s" )
53+ info.hub_id # 'mnm-matin/hyperbolic-clip'
54+ info.license # 'CC-BY-NC'
55+
56+ # Low-level: preprocess images yourself
57+ batch = hyper_models.preprocess_images(images) # (B, 3, 224, 224)
58+ embeddings = model.encode(batch)
5059```
5160
5261## Models
5362
5463### Hyperbolic
5564
56- | Model | Available | Paper | License | Code |
57- | -------| :---------:| -------| --------- | ------ |
58- | ` hycoclip-vit-s ` | ✓ | [ ICLR 2025] ( https://arxiv.org/abs/2410.06912 ) | CC-BY-NC | [ PalAvik/hycoclip] ( https://github.com/PalAvik/hycoclip ) |
59- | ` hycoclip-vit-b ` | | [ ICLR 2025] ( https://arxiv.org/abs/2410.06912 ) | CC-BY-NC | [ PalAvik/hycoclip] ( https://github.com/PalAvik/hycoclip ) |
60- | ` meru-vit-s ` | | [ ICML 2023] ( https://arxiv.org/abs/2304.09172 ) | CC-BY-NC | [ facebookresearch/meru] ( https://github.com/facebookresearch/meru ) |
61- | ` meru-vit-b ` | | [ ICML 2023] ( https://arxiv.org/abs/2304.09172 ) | CC-BY-NC | [ facebookresearch/meru] ( https://github.com/facebookresearch/meru ) |
62- | ` hyp-vit ` | | [ CVPR 2022] ( https://arxiv.org/abs/2203.10833 ) | MIT | [ htdt/hyp_metric] ( https://github.com/htdt/hyp_metric ) |
63- | ` hie ` | | [ CVPR 2020] ( https://arxiv.org/abs/1904.02239 ) | MIT | [ leymir/hyperbolic-image-embeddings] ( https://github.com/leymir/hyperbolic-image-embeddings ) |
64- | ` hcnn ` | | [ ICLR 2024] ( https://openreview.net/forum?id=ekz1hN5QNh ) | MIT | [ kschwethelm/HyperbolicCV] ( https://github.com/kschwethelm/HyperbolicCV ) |
65+ | Model | Available | Paper | Code |
66+ | -------| :---------:| -------| ------|
67+ | ` hycoclip-vit-s ` | [ ![ HF ] ( https://img.shields.io/badge/🤗-HuggingFace-yellow )] ( https://huggingface.co/mnm-matin/hyperbolic-clip/tree/main/hycoclip-vit-s ) | [ ICLR 2025] ( https://arxiv.org/abs/2410.06912 ) | [ PalAvik/hycoclip] ( https://github.com/PalAvik/hycoclip ) |
68+ | ` hycoclip-vit-b ` | [ ![ HF ] ( https://img.shields.io/badge/🤗-HuggingFace-yellow )] ( https://huggingface.co/mnm-matin/hyperbolic-clip/tree/main/hycoclip-vit-b ) | [ ICLR 2025] ( https://arxiv.org/abs/2410.06912 ) | [ PalAvik/hycoclip] ( https://github.com/PalAvik/hycoclip ) |
69+ | ` meru-vit-s ` | [ ![ HF ] ( https://img.shields.io/badge/🤗-HuggingFace-yellow )] ( https://huggingface.co/mnm-matin/hyperbolic-clip/tree/main/meru-vit-s ) | [ ICML 2023] ( https://arxiv.org/abs/2304.09172 ) | [ facebookresearch/meru] ( https://github.com/facebookresearch/meru ) |
70+ | ` meru-vit-b ` | [ ![ HF ] ( https://img.shields.io/badge/🤗-HuggingFace-yellow )] ( https://huggingface.co/mnm-matin/hyperbolic-clip/tree/main/meru-vit-b ) | [ ICML 2023] ( https://arxiv.org/abs/2304.09172 ) | [ facebookresearch/meru] ( https://github.com/facebookresearch/meru ) |
71+ | ` hyp-vit ` | — | [ CVPR 2022] ( https://arxiv.org/abs/2203.10833 ) | [ htdt/hyp_metric] ( https://github.com/htdt/hyp_metric ) |
72+ | ` hie ` | — | [ CVPR 2020] ( https://arxiv.org/abs/1904.02239 ) | [ leymir/hyperbolic-image-embeddings] ( https://github.com/leymir/hyperbolic-image-embeddings ) |
73+ | ` hcnn ` | — | [ ICLR 2024] ( https://openreview.net/forum?id=ekz1hN5QNh ) | [ kschwethelm/HyperbolicCV] ( https://github.com/kschwethelm/HyperbolicCV ) |
6574
6675### Spherical
6776
68- | Model | Available | Paper | License | Code |
69- | -------| :---------:| -------| --------- | ------ |
70- | ` sphereface ` | | [ CVPR 2017] ( https://arxiv.org/abs/1704.08063 ) | MIT | [ wy1iu/sphereface] ( https://github.com/wy1iu/sphereface ) |
71- | ` arcface ` | | [ CVPR 2019] ( https://arxiv.org/abs/1801.07698 ) | MIT | [ deepinsight/insightface] ( https://github.com/deepinsight/insightface ) |
77+ | Model | Available | Paper | Code |
78+ | -------| :---------:| -------| ------|
79+ | ` sphereface ` | — | [ CVPR 2017] ( https://arxiv.org/abs/1704.08063 ) | [ wy1iu/sphereface] ( https://github.com/wy1iu/sphereface ) |
80+ | ` arcface ` | — | [ CVPR 2019] ( https://arxiv.org/abs/1801.07698 ) | [ deepinsight/insightface] ( https://github.com/deepinsight/insightface ) |
7281
7382### Product Manifolds
7483
75- | Model | Available | Paper | License | Code |
76- | -------| :---------:| -------| --------- | ------ |
77- | ` hyperbolics ` | | [ ICLR 2019] ( https://openreview.net/forum?id=HJxeWnCcF7 ) | MIT | [ HazyResearch/hyperbolics] ( https://github.com/HazyResearch/hyperbolics ) |
84+ | Model | Available | Paper | Code |
85+ | -------| :---------:| -------| ------|
86+ | ` hyperbolics ` | — | [ ICLR 2019] ( https://openreview.net/forum?id=HJxeWnCcF7 ) | [ HazyResearch/hyperbolics] ( https://github.com/HazyResearch/hyperbolics ) |
7887
7988## Export Tooling
8089
0 commit comments