hyper-models 0.3.1__tar.gz → 0.3.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {hyper_models-0.3.1 → hyper_models-0.3.2}/PKG-INFO +5 -5
- {hyper_models-0.3.1 → hyper_models-0.3.2}/README.md +4 -4
- {hyper_models-0.3.1 → hyper_models-0.3.2}/pyproject.toml +1 -1
- {hyper_models-0.3.1 → hyper_models-0.3.2}/src/hyper_models/registry.py +10 -4
- {hyper_models-0.3.1 → hyper_models-0.3.2}/.gitignore +0 -0
- {hyper_models-0.3.1 → hyper_models-0.3.2}/LICENSE +0 -0
- {hyper_models-0.3.1 → hyper_models-0.3.2}/src/hyper3_clip/__init__.py +0 -0
- {hyper_models-0.3.1 → hyper_models-0.3.2}/src/hyper3_clip/models/__init__.py +0 -0
- {hyper_models-0.3.1 → hyper_models-0.3.2}/src/hyper3_clip/models/encoders.py +0 -0
- {hyper_models-0.3.1 → hyper_models-0.3.2}/src/hyper3_clip/models/experimental.py +0 -0
- {hyper_models-0.3.1 → hyper_models-0.3.2}/src/hyper3_clip/models/himo.py +0 -0
- {hyper_models-0.3.1 → hyper_models-0.3.2}/src/hyper3_clip/models/hyper3_clip.py +0 -0
- {hyper_models-0.3.1 → hyper_models-0.3.2}/src/hyper3_clip/models/lorentz.py +0 -0
- {hyper_models-0.3.1 → hyper_models-0.3.2}/src/hyper3_clip/models/losses.py +0 -0
- {hyper_models-0.3.1 → hyper_models-0.3.2}/src/hyper3_clip/models/objectives.py +0 -0
- {hyper_models-0.3.1 → hyper_models-0.3.2}/src/hyper3_clip/models/tren.py +0 -0
- {hyper_models-0.3.1 → hyper_models-0.3.2}/src/hyper3_clip/training/__init__.py +0 -0
- {hyper_models-0.3.1 → hyper_models-0.3.2}/src/hyper3_clip/training/distributed.py +0 -0
- {hyper_models-0.3.1 → hyper_models-0.3.2}/src/hyper_models/__init__.py +0 -0
- {hyper_models-0.3.1 → hyper_models-0.3.2}/src/hyper_models/loader.py +0 -0
- {hyper_models-0.3.1 → hyper_models-0.3.2}/src/hyper_models/loaders.py +0 -0
- {hyper_models-0.3.1 → hyper_models-0.3.2}/src/hyper_models/models.py +0 -0
- {hyper_models-0.3.1 → hyper_models-0.3.2}/src/hyper_models/preprocessing.py +0 -0
- {hyper_models-0.3.1 → hyper_models-0.3.2}/src/hyper_models/torch_models.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: hyper-models
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.2
|
|
4
4
|
Summary: A model zoo for non-Euclidean embedding models (hyperbolic, spherical, product manifolds)
|
|
5
5
|
Project-URL: Homepage, https://github.com/Hyper3Labs/hyper-models
|
|
6
6
|
Project-URL: Repository, https://github.com/Hyper3Labs/hyper-models
|
|
@@ -87,7 +87,7 @@ from PIL import Image
|
|
|
87
87
|
|
|
88
88
|
# List available models
|
|
89
89
|
hyper_models.list_models()
|
|
90
|
-
# ['hycoclip-vit-s', 'hycoclip-vit-b', 'meru-vit-s', 'meru-vit-b', 'uncha-vit-s', 'uncha-vit-b', 'hyper3-clip-
|
|
90
|
+
# ['hycoclip-vit-s', 'hycoclip-vit-b', 'meru-vit-s', 'meru-vit-b', 'uncha-vit-s', 'uncha-vit-b', 'hyper3-clip-v1']
|
|
91
91
|
|
|
92
92
|
# Inspect supported internal loader kinds
|
|
93
93
|
hyper_models.list_loaders()
|
|
@@ -130,7 +130,7 @@ This keeps callers on one stable API:
|
|
|
130
130
|
```python
|
|
131
131
|
model = hyper_models.load("hycoclip-vit-s")
|
|
132
132
|
model = hyper_models.load("uncha-vit-b")
|
|
133
|
-
model = hyper_models.load("hyper3-clip-
|
|
133
|
+
model = hyper_models.load("hyper3-clip-v1")
|
|
134
134
|
```
|
|
135
135
|
|
|
136
136
|
Callers do not need to know which internal loader is used, except for optional
|
|
@@ -159,7 +159,7 @@ HyperView's simple path remains torch-free. If you use the default ONNX-backed
|
|
|
159
159
|
`hyper-models` entries or the default `embed-anything` provider, HyperView does
|
|
160
160
|
not need PyTorch. PyTorch is only needed when you explicitly select a
|
|
161
161
|
torch-backed catalog entry such as `uncha-vit-s`, `uncha-vit-b`, or
|
|
162
|
-
`hyper3-clip-
|
|
162
|
+
`hyper3-clip-v1`.
|
|
163
163
|
|
|
164
164
|
## Models
|
|
165
165
|
|
|
@@ -173,7 +173,7 @@ torch-backed catalog entry such as `uncha-vit-s`, `uncha-vit-b`, or
|
|
|
173
173
|
| `meru-vit-b` | [](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) |
|
|
174
174
|
| `uncha-vit-s` | [](https://huggingface.co/hayeonkim/uncha/blob/main/uncha_vit_s.pth) | [CVPR 2026](https://arxiv.org/abs/2603.22042) | [jeeit17/UNCHA](https://github.com/jeeit17/UNCHA) |
|
|
175
175
|
| `uncha-vit-b` | [](https://huggingface.co/hayeonkim/uncha/blob/main/uncha_vit_b.pth) | [CVPR 2026](https://arxiv.org/abs/2603.22042) | [jeeit17/UNCHA](https://github.com/jeeit17/UNCHA) |
|
|
176
|
-
| `hyper3-clip-
|
|
176
|
+
| `hyper3-clip-v1` | [](https://huggingface.co/hyper3labs/hyper3-clip-v1) | — | [Hyper3Labs/hyper3-clip](https://github.com/Hyper3Labs/hyper3-clip) |
|
|
177
177
|
| `hyp-vit` | — | [CVPR 2022](https://arxiv.org/abs/2203.10833) | [htdt/hyp_metric](https://github.com/htdt/hyp_metric) |
|
|
178
178
|
| `hie` | — | [CVPR 2020](https://arxiv.org/abs/1904.02239) | [leymir/hyperbolic-image-embeddings](https://github.com/leymir/hyperbolic-image-embeddings) |
|
|
179
179
|
| `hcnn` | — | [ICLR 2024](https://openreview.net/forum?id=ekz1hN5QNh) | [kschwethelm/HyperbolicCV](https://github.com/kschwethelm/HyperbolicCV) |
|
|
@@ -46,7 +46,7 @@ from PIL import Image
|
|
|
46
46
|
|
|
47
47
|
# List available models
|
|
48
48
|
hyper_models.list_models()
|
|
49
|
-
# ['hycoclip-vit-s', 'hycoclip-vit-b', 'meru-vit-s', 'meru-vit-b', 'uncha-vit-s', 'uncha-vit-b', 'hyper3-clip-
|
|
49
|
+
# ['hycoclip-vit-s', 'hycoclip-vit-b', 'meru-vit-s', 'meru-vit-b', 'uncha-vit-s', 'uncha-vit-b', 'hyper3-clip-v1']
|
|
50
50
|
|
|
51
51
|
# Inspect supported internal loader kinds
|
|
52
52
|
hyper_models.list_loaders()
|
|
@@ -89,7 +89,7 @@ This keeps callers on one stable API:
|
|
|
89
89
|
```python
|
|
90
90
|
model = hyper_models.load("hycoclip-vit-s")
|
|
91
91
|
model = hyper_models.load("uncha-vit-b")
|
|
92
|
-
model = hyper_models.load("hyper3-clip-
|
|
92
|
+
model = hyper_models.load("hyper3-clip-v1")
|
|
93
93
|
```
|
|
94
94
|
|
|
95
95
|
Callers do not need to know which internal loader is used, except for optional
|
|
@@ -118,7 +118,7 @@ HyperView's simple path remains torch-free. If you use the default ONNX-backed
|
|
|
118
118
|
`hyper-models` entries or the default `embed-anything` provider, HyperView does
|
|
119
119
|
not need PyTorch. PyTorch is only needed when you explicitly select a
|
|
120
120
|
torch-backed catalog entry such as `uncha-vit-s`, `uncha-vit-b`, or
|
|
121
|
-
`hyper3-clip-
|
|
121
|
+
`hyper3-clip-v1`.
|
|
122
122
|
|
|
123
123
|
## Models
|
|
124
124
|
|
|
@@ -132,7 +132,7 @@ torch-backed catalog entry such as `uncha-vit-s`, `uncha-vit-b`, or
|
|
|
132
132
|
| `meru-vit-b` | [](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) |
|
|
133
133
|
| `uncha-vit-s` | [](https://huggingface.co/hayeonkim/uncha/blob/main/uncha_vit_s.pth) | [CVPR 2026](https://arxiv.org/abs/2603.22042) | [jeeit17/UNCHA](https://github.com/jeeit17/UNCHA) |
|
|
134
134
|
| `uncha-vit-b` | [](https://huggingface.co/hayeonkim/uncha/blob/main/uncha_vit_b.pth) | [CVPR 2026](https://arxiv.org/abs/2603.22042) | [jeeit17/UNCHA](https://github.com/jeeit17/UNCHA) |
|
|
135
|
-
| `hyper3-clip-
|
|
135
|
+
| `hyper3-clip-v1` | [](https://huggingface.co/hyper3labs/hyper3-clip-v1) | — | [Hyper3Labs/hyper3-clip](https://github.com/Hyper3Labs/hyper3-clip) |
|
|
136
136
|
| `hyp-vit` | — | [CVPR 2022](https://arxiv.org/abs/2203.10833) | [htdt/hyp_metric](https://github.com/htdt/hyp_metric) |
|
|
137
137
|
| `hie` | — | [CVPR 2020](https://arxiv.org/abs/1904.02239) | [leymir/hyperbolic-image-embeddings](https://github.com/leymir/hyperbolic-image-embeddings) |
|
|
138
138
|
| `hcnn` | — | [ICLR 2024](https://openreview.net/forum?id=ekz1hN5QNh) | [kschwethelm/HyperbolicCV](https://github.com/kschwethelm/HyperbolicCV) |
|
|
@@ -100,18 +100,18 @@ _MODELS: dict[str, ModelInfo] = {
|
|
|
100
100
|
optional_dependencies=("ml",),
|
|
101
101
|
description="UNCHA ViT-B/16 checkpoint (HF .pth, torch inference)",
|
|
102
102
|
),
|
|
103
|
-
"hyper3-clip-
|
|
104
|
-
name="hyper3-clip-
|
|
103
|
+
"hyper3-clip-v1": ModelInfo(
|
|
104
|
+
name="hyper3-clip-v1",
|
|
105
105
|
geometry="hyperboloid",
|
|
106
106
|
dim=513,
|
|
107
|
-
hub_id="hyper3labs/hyper3-clip-
|
|
107
|
+
hub_id="hyper3labs/hyper3-clip-v1",
|
|
108
108
|
hub_path="model.safetensors",
|
|
109
109
|
hub_patterns=("config.yaml", "model.safetensors"),
|
|
110
110
|
license="Unknown",
|
|
111
111
|
loader="hyper3-clip-torch",
|
|
112
112
|
optional_dependencies=("ml",),
|
|
113
113
|
modalities=("image", "text"),
|
|
114
|
-
description="Hyper3-CLIP
|
|
114
|
+
description="Hyper3-CLIP v1 ViT-B image+text encoder (HF safetensors, torch inference)",
|
|
115
115
|
image_config=ImageConfig(
|
|
116
116
|
size=224,
|
|
117
117
|
interpolation="bicubic",
|
|
@@ -132,6 +132,11 @@ _MODELS: dict[str, ModelInfo] = {
|
|
|
132
132
|
),
|
|
133
133
|
}
|
|
134
134
|
|
|
135
|
+
_ALIASES = {
|
|
136
|
+
# Compatibility for callers that selected the model before its v1 rename.
|
|
137
|
+
"hyper3-clip-v0.5": "hyper3-clip-v1",
|
|
138
|
+
}
|
|
139
|
+
|
|
135
140
|
|
|
136
141
|
def list_models(geometry: str | None = None) -> list[str]:
|
|
137
142
|
"""List available model names, optionally filtered by geometry."""
|
|
@@ -142,6 +147,7 @@ def list_models(geometry: str | None = None) -> list[str]:
|
|
|
142
147
|
|
|
143
148
|
def get_model_info(name: str) -> ModelInfo:
|
|
144
149
|
"""Get metadata for a model. Raises KeyError if not found."""
|
|
150
|
+
name = _ALIASES.get(name, name)
|
|
145
151
|
if name not in _MODELS:
|
|
146
152
|
raise KeyError(f"Model '{name}' not found. Available: {', '.join(_MODELS.keys())}")
|
|
147
153
|
return _MODELS[name]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|