File size: 981 Bytes
4ee7e8b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{
  "model_file": "signature_classifier_mobilenetv3_small.onnx",
  "class_to_idx": {
    "NOT_SIGNATURE": 0,
    "SIGNATURE": 1
  },
  "idx_to_class": {
    "0": "NOT_SIGNATURE",
    "1": "SIGNATURE"
  },
  "input_name": "image",
  "output_name": "logits",
  "input_color": "RGB",
  "input_layout": "NCHW",
  "input_shape": [
    1,
    3,
    224,
    224
  ],
  "resize_mode": "letterbox",
  "letterbox": {
    "scale": "size / max(w, h)",
    "new_size": "round(w*scale), round(h*scale)",
    "interpolation": "bilinear",
    "offset": "((size-new_w)//2, (size-new_h)//2)",
    "pad_rgb": [
      255,
      255,
      255
    ]
  },
  "pixel_scale": 0.00392156862745098,
  "mean": [
    0.485,
    0.456,
    0.406
  ],
  "std": [
    0.229,
    0.224,
    0.225
  ],
  "crop_pad_ratio": 0.08,
  "accept_threshold": 0.10070161521434784,
  "threshold_policy": "precision \u2265 0.98",
  "decision_rule": "SIGNATURE if softmax(logits)[1] >= accept_threshold else NOT_SIGNATURE"
}