Instructions to use HanClinto/cornelius with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- CollectorVision
How to use HanClinto/cornelius with CollectorVision:
pip install git+https://github.com/HanClinto/CollectorVision huggingface_hub
from huggingface_hub import hf_hub_download import collector_vision as cvg checkpoint = hf_hub_download(repo_id="HanClinto/cornelius", filename="model.onnx") # Detector models, such as Cornelius: detector = cvg.NeuralCornerDetector(checkpoint) # Embedder models, such as Milo: embedder = cvg.NeuralEmbedder(checkpoint)
- Notebooks
- Google Colab
- Kaggle
Update Cornelius model card for 1.210
Browse filesDocument Cornelius 1.210 as the current beta-test candidate and fix direct ONNX input name.
README.md
CHANGED
|
@@ -21,9 +21,15 @@ MobileViT-XXS backbone with a SimCC coordinate classification head, trained to l
|
|
| 21 |
| Input | 384×384 RGB, ImageNet-normalised |
|
| 22 |
| Outputs | corners (8 floats, normalised [0,1]), presence logit, sharpness scalar |
|
| 23 |
| Parameters | ~1.82M |
|
| 24 |
-
| File size |
|
| 25 |
| Codename | cornelius |
|
| 26 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
|
| 28 |
## Outputs
|
| 29 |
|
|
@@ -50,7 +56,7 @@ import onnxruntime as ort
|
|
| 50 |
import numpy as np
|
| 51 |
from PIL import Image
|
| 52 |
|
| 53 |
-
session = ort.InferenceSession("
|
| 54 |
|
| 55 |
# Preprocess: resize to 384×384, ImageNet normalise, NCHW float32
|
| 56 |
img = Image.open("photo.jpg").convert("RGB").resize((384, 384))
|
|
@@ -58,7 +64,7 @@ x = np.array(img, dtype=np.float32) / 255.0
|
|
| 58 |
x = (x - [0.485, 0.456, 0.406]) / [0.229, 0.224, 0.225]
|
| 59 |
x = x.transpose(2, 0, 1)[None] # (1, 3, 384, 384)
|
| 60 |
|
| 61 |
-
corners, presence, sharpness = session.run(None, {"
|
| 62 |
# corners: (1, 8) — x0,y0,x1,y1,x2,y2,x3,y3 normalised [0,1], TL→TR→BR→BL
|
| 63 |
# presence: (1, 1) — raw logit
|
| 64 |
# sharpness: (1, 1) — use > 0.02 as a card-present gate
|
|
|
|
| 21 |
| Input | 384×384 RGB, ImageNet-normalised |
|
| 22 |
| Outputs | corners (8 floats, normalised [0,1]), presence logit, sharpness scalar |
|
| 23 |
| Parameters | ~1.82M |
|
| 24 |
+
| File size | 7.1 MB (fp32 ONNX, optimised) |
|
| 25 |
| Codename | cornelius |
|
| 26 |
+
| Latest version | 1.210 (epoch 210) |
|
| 27 |
+
|
| 28 |
+
## Versions
|
| 29 |
+
|
| 30 |
+
| File | Training data | Notes |
|
| 31 |
+
|---|---|---|
|
| 32 |
+
| `cornelius-1.210.onnx` | PackOpening + TCGplayer Listos | Current beta-test candidate. Combined held-out IoU 0.8857; source-specific Clint IoU 0.764 and Listos IoU 0.905. |
|
| 33 |
|
| 34 |
## Outputs
|
| 35 |
|
|
|
|
| 56 |
import numpy as np
|
| 57 |
from PIL import Image
|
| 58 |
|
| 59 |
+
session = ort.InferenceSession("cornelius-1.210.onnx")
|
| 60 |
|
| 61 |
# Preprocess: resize to 384×384, ImageNet normalise, NCHW float32
|
| 62 |
img = Image.open("photo.jpg").convert("RGB").resize((384, 384))
|
|
|
|
| 64 |
x = (x - [0.485, 0.456, 0.406]) / [0.229, 0.224, 0.225]
|
| 65 |
x = x.transpose(2, 0, 1)[None] # (1, 3, 384, 384)
|
| 66 |
|
| 67 |
+
corners, presence, sharpness = session.run(None, {"image": x})
|
| 68 |
# corners: (1, 8) — x0,y0,x1,y1,x2,y2,x3,y3 normalised [0,1], TL→TR→BR→BL
|
| 69 |
# presence: (1, 1) — raw logit
|
| 70 |
# sharpness: (1, 1) — use > 0.02 as a card-present gate
|