chanelcolgate commited on
Commit
a2c8886
1 Parent(s): dd89efa

add ultralytics model card

Browse files
Files changed (1) hide show
  1. README.md +79 -0
README.md ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ---
3
+ tags:
4
+ - ultralyticsplus
5
+ - yolov8
6
+ - ultralytics
7
+ - yolo
8
+ - vision
9
+ - object-detection
10
+ - pytorch
11
+
12
+ library_name: ultralytics
13
+ library_version: 8.0.239
14
+ inference: false
15
+
16
+ datasets:
17
+ - chanelcolgate/yenthienviet
18
+
19
+ model-index:
20
+ - name: chanelcolgate/chamdiemgianhang-vsk-v8
21
+ results:
22
+ - task:
23
+ type: object-detection
24
+
25
+ dataset:
26
+ type: chanelcolgate/yenthienviet
27
+ name: yenthienviet
28
+ split: validation
29
+
30
+ metrics:
31
+ - type: precision # since mAP@0.5 is not available on hf.co/metrics
32
+ value: 0.99425 # min: 0.0 - max: 1.0
33
+ name: mAP@0.5(box)
34
+ ---
35
+
36
+ <div align="center">
37
+ <img width="640" alt="chanelcolgate/chamdiemgianhang-vsk-v8" src="https://huggingface.co/chanelcolgate/chamdiemgianhang-vsk-v8/resolve/main/thumbnail.jpg">
38
+ </div>
39
+
40
+ ### Supported Labels
41
+
42
+ ```
43
+ ['BOM_GEN', 'BOM_JUN', 'BOM_KID', 'BOM_SAC', 'BOM_THV', 'BOM_THX', 'BOM_VTG', 'BOM_YTV', 'HAN_GLI', 'HOP_FEJ', 'HOP_FRE', 'HOP_JUN', 'HOP_POC', 'HOP_VTG', 'HOP_YTV', 'LOC_JUN', 'LOC_KID', 'LOC_YTV', 'LOO_DAU', 'LOO_KID', 'LOO_MAM', 'LOO_YTV', 'POS_GLI', 'POS_LON', 'POS_NHO', 'POS_THA', 'TUI_GEN', 'TUI_JUN', 'TUI_KID', 'TUI_SAC', 'TUI_THV', 'TUI_THX', 'TUI_VTG', 'TUI_YTV']
44
+ ```
45
+
46
+ ### How to use
47
+
48
+ - Install [ultralyticsplus](https://github.com/fcakyon/ultralyticsplus):
49
+
50
+ ```bash
51
+ pip install ultralyticsplus==0.1.0 ultralytics==8.0.239
52
+ ```
53
+
54
+ - Load model and perform prediction:
55
+
56
+ ```python
57
+ from ultralyticsplus import YOLO, render_result
58
+
59
+ # load model
60
+ model = YOLO('chanelcolgate/chamdiemgianhang-vsk-v8')
61
+
62
+ # set model parameters
63
+ model.overrides['conf'] = 0.25 # NMS confidence threshold
64
+ model.overrides['iou'] = 0.45 # NMS IoU threshold
65
+ model.overrides['agnostic_nms'] = False # NMS class-agnostic
66
+ model.overrides['max_det'] = 1000 # maximum number of detections per image
67
+
68
+ # set image
69
+ image = 'https://github.com/ultralytics/yolov5/raw/master/data/images/zidane.jpg'
70
+
71
+ # perform inference
72
+ results = model.predict(image)
73
+
74
+ # observe results
75
+ print(results[0].boxes)
76
+ render = render_result(model=model, image=image, result=results[0])
77
+ render.show()
78
+ ```
79
+