immaculate-onnx 0.1.0__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.
- immaculate_onnx-0.1.0/LICENSE +40 -0
- immaculate_onnx-0.1.0/PKG-INFO +20 -0
- immaculate_onnx-0.1.0/README.md +8 -0
- immaculate_onnx-0.1.0/pyproject.toml +18 -0
- immaculate_onnx-0.1.0/src/immaculate_onnx/SSCD_LICENSE +21 -0
- immaculate_onnx-0.1.0/src/immaculate_onnx/__init__.py +14 -0
- immaculate_onnx-0.1.0/src/immaculate_onnx/py.typed +0 -0
- immaculate_onnx-0.1.0/src/immaculate_onnx/sscd.onnx +0 -0
- immaculate_onnx-0.1.0/src/immaculate_onnx/sscd_distilled.onnx +0 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
Proprietary License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Peter Batchelor. All rights reserved.
|
|
4
|
+
|
|
5
|
+
This software and its associated documentation (the "Software") are the
|
|
6
|
+
proprietary property of the copyright holder. The Software is made
|
|
7
|
+
available through the Python Package Index (PyPI) under the following
|
|
8
|
+
terms.
|
|
9
|
+
|
|
10
|
+
1. Permitted use. You may download, install, and use the Software, in the
|
|
11
|
+
unmodified form distributed by the copyright holder, for any personal
|
|
12
|
+
or commercial purpose, including as a dependency of your own software.
|
|
13
|
+
|
|
14
|
+
2. Restrictions. Except as expressly permitted above, you may not:
|
|
15
|
+
a. copy, reproduce, or republish the source code of the Software, in
|
|
16
|
+
whole or in part, other than the copies made automatically when
|
|
17
|
+
installing and running it;
|
|
18
|
+
b. modify, translate, adapt, or create derivative works based on the
|
|
19
|
+
Software;
|
|
20
|
+
c. distribute, sublicense, sell, rent, lease, or otherwise make the
|
|
21
|
+
Software available to any third party other than through the
|
|
22
|
+
copyright holder's official distribution channels; or
|
|
23
|
+
d. remove or alter any copyright, license, or proprietary notices in
|
|
24
|
+
the Software.
|
|
25
|
+
|
|
26
|
+
3. Reservation of rights. The Software is licensed, not sold. All rights
|
|
27
|
+
not expressly granted in this license are reserved by the copyright
|
|
28
|
+
holder.
|
|
29
|
+
|
|
30
|
+
4. Termination. This license terminates automatically if you breach any
|
|
31
|
+
of its terms. On termination you must stop using the Software and
|
|
32
|
+
delete all copies in your possession.
|
|
33
|
+
|
|
34
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
35
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
36
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
37
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
38
|
+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
|
|
39
|
+
OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
40
|
+
SOFTWARE.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: immaculate-onnx
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: The models for Immaculate's sscd and sscd_distilled methods.
|
|
5
|
+
Author: Peter Batchelor
|
|
6
|
+
License-Expression: LicenseRef-Proprietary
|
|
7
|
+
License-File: LICENSE
|
|
8
|
+
License-File: src/immaculate_onnx/SSCD_LICENSE
|
|
9
|
+
Requires-Python: >=3.12
|
|
10
|
+
Project-URL: Repository, https://github.com/Pbatch/Immaculate
|
|
11
|
+
Description-Content-Type: text/markdown
|
|
12
|
+
|
|
13
|
+
# immaculate-onnx
|
|
14
|
+
|
|
15
|
+
The ONNX models for [Immaculate](https://pypi.org/project/immaculate/)'s `sscd` and
|
|
16
|
+
`sscd_distilled` methods. Install them with Immaculate's `sscd` extra:
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
pip install "immaculate[sscd]"
|
|
20
|
+
```
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "immaculate-onnx"
|
|
3
|
+
# Versioned on its own and pinned by Immaculate's sscd extra; bump it only when a model changes
|
|
4
|
+
version = "0.1.0"
|
|
5
|
+
description = "The models for Immaculate's sscd and sscd_distilled methods."
|
|
6
|
+
readme = "README.md"
|
|
7
|
+
authors = [{ name = "Peter Batchelor" }]
|
|
8
|
+
license = "LicenseRef-Proprietary"
|
|
9
|
+
license-files = ["LICENSE", "src/immaculate_onnx/SSCD_LICENSE"]
|
|
10
|
+
requires-python = ">=3.12"
|
|
11
|
+
dependencies = []
|
|
12
|
+
|
|
13
|
+
[project.urls]
|
|
14
|
+
Repository = "https://github.com/Pbatch/Immaculate"
|
|
15
|
+
|
|
16
|
+
[build-system]
|
|
17
|
+
requires = ["uv_build==0.11.22"]
|
|
18
|
+
build-backend = "uv_build"
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"""The models for Immaculate's "sscd" and "sscd_distilled" methods."""
|
|
2
|
+
|
|
3
|
+
from pathlib import Path
|
|
4
|
+
|
|
5
|
+
SSCD_MODEL = Path(__file__).parent / "sscd.onnx"
|
|
6
|
+
"""SSCD's `sscd_disc_mixup` model quantised to int8 for ONNX Runtime. Meta's weights are MIT
|
|
7
|
+
licensed; see `SSCD_LICENSE` in the same folder."""
|
|
8
|
+
SSCD_DISTILLED_MODEL = Path(__file__).parent / "sscd_distilled.onnx"
|
|
9
|
+
"""A MobileNetV4 Conv-S student trained to reproduce SSCD's embeddings, with fp16 weights and
|
|
10
|
+
fp32 maths, made by `dev/export_mobilenetv4_onnx.py`. Its trunk starts from timm's
|
|
11
|
+
ImageNet-trained weights (Apache 2.0), and it was distilled from SSCD (`SSCD_LICENSE`) on
|
|
12
|
+
Conceptual Captions 3M images."""
|
|
13
|
+
MODELS: dict[str, Path] = {"sscd": SSCD_MODEL, "sscd_distilled": SSCD_DISTILLED_MODEL}
|
|
14
|
+
"""The model each method runs."""
|
|
File without changes
|
|
Binary file
|
|
Binary file
|