ipd805 commited on
Commit
ba19e9b
·
verified ·
1 Parent(s): 1e979f1

Update config.json

Browse files
Files changed (1) hide show
  1. config.json +26 -29
config.json CHANGED
@@ -1,37 +1,34 @@
1
  {
2
- "model_name": "Digit and Icon Detector",
3
  "framework": "onnx",
4
- "task_type": "object-detection",
5
- "architecture": "ONNX",
6
- "labels": [
7
- {
8
- "id": 0,
9
- "name": "digit",
10
- "color": "#ff0000"
11
- },
12
- {
13
- "id": 1,
14
- "name": "icon",
15
- "color": "#00ff00"
16
- }
17
- ],
18
  "input_shape": [1, 3, 640, 640],
19
- "input_format": "NCHW",
20
- "preprocessing": {
21
- "resize_mode": "letterbox",
22
- "size": [640, 640],
23
- "mean": [0, 0, 0],
24
- "std": [255, 255, 255],
25
- "to_rgb": true
 
 
 
26
  },
27
- "postprocessing": {
 
28
  "confidence_threshold": 0.25,
29
  "iou_threshold": 0.45,
30
- "max_detections": 300
31
- },
32
- "metadata": {
33
- "description": "ONNX model for detecting digits and icons",
34
- "author": "Your Name",
35
- "version": "1.0"
36
  }
37
  }
 
1
  {
2
+ "model_type": "object_detection",
3
  "framework": "onnx",
4
+ "task": "object-detection",
5
+ "architecture": "YOLOv8",
6
+ "format": "ONNX",
7
+ "num_labels": 2,
8
+ "id2label": {
9
+ "0": "digit",
10
+ "1": "icon"
11
+ },
12
+ "label2id": {
13
+ "digit": 0,
14
+ "icon": 1
15
+ },
 
 
16
  "input_shape": [1, 3, 640, 640],
17
+ "inference_framework": "onnxruntime",
18
+ "preprocessor": {
19
+ "type": "YOLOv8ImageProcessor",
20
+ "size": {
21
+ "height": 640,
22
+ "width": 640
23
+ },
24
+ "do_normalize": true,
25
+ "do_resize": true,
26
+ "resize_method": "letterbox"
27
  },
28
+ "postprocessor": {
29
+ "type": "YOLOv8Postprocessor",
30
  "confidence_threshold": 0.25,
31
  "iou_threshold": 0.45,
32
+ "max_detections_per_image": 300
 
 
 
 
 
33
  }
34
  }