Download classifier_config.json from AmjadKha/HandSignatureDetection: direct link, hf CLI and curl.
- Browser
- Download file 981 Bytes
-
https://huggingface.co/AmjadKha/HandSignatureDetection/resolve/main/classifier_config.json
- Command line
-
hf download hf://AmjadKha/HandSignatureDetection/classifier_config.json
-
curl -L -o classifier_config.json https://huggingface.co/AmjadKha/HandSignatureDetection/resolve/main/classifier_config.json
981 Bytes
| { | |
| "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" | |
| } |