HanClinto commited on
Commit
60cf56f
·
verified ·
1 Parent(s): e9b0006

Update Cornelius model card for 1.210

Browse files

Document Cornelius 1.210 as the current beta-test candidate and fix direct ONNX input name.

Files changed (1) hide show
  1. README.md +10 -4
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 | 8.6 MB (fp32 ONNX) |
25
  | Codename | cornelius |
26
- | Version | 1.0.0 (epoch 45) |
 
 
 
 
 
 
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("model.onnx")
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, {"pixel_values": x})
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