chanelcolgate commited on
Commit
cbec054
1 Parent(s): bfa0b22

add ultralytics model card

Browse files
Files changed (1) hide show
  1. README.md +83 -0
README.md ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ---
3
+ tags:
4
+ - ultralyticsplus
5
+ - yolov8
6
+ - ultralytics
7
+ - yolo
8
+ - vision
9
+ - image-segmentation
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/cadivi-segment-yolov8m-v2
21
+ results:
22
+ - task:
23
+ type: image-segmentation
24
+
25
+ dataset:
26
+ type: chanelcolgate/yenthienviet
27
+ name: yenthienviet
28
+ split: validation
29
+
30
+ metrics:
31
+ - type: precision # since [email protected] is not available on hf.co/metrics
32
+ value: 0.995 # min: 0.0 - max: 1.0
33
+ name: [email protected](box)
34
+ - type: precision # since [email protected] is not available on hf.co/metrics
35
+ value: 0.995 # min: 0.0 - max: 1.0
36
+ name: [email protected](mask)
37
+ ---
38
+
39
+ <div align="center">
40
+ <img width="640" alt="chanelcolgate/cadivi-segment-yolov8m-v2" src="https://huggingface.co/chanelcolgate/cadivi-segment-yolov8m-v2/resolve/main/thumbnail.jpg">
41
+ </div>
42
+
43
+ ### Supported Labels
44
+
45
+ ```
46
+ ['cable']
47
+ ```
48
+
49
+ ### How to use
50
+
51
+ - Install [ultralyticsplus](https://github.com/fcakyon/ultralyticsplus):
52
+
53
+ ```bash
54
+ pip install ultralyticsplus==0.1.0 ultralytics==8.0.239
55
+ ```
56
+
57
+ - Load model and perform prediction:
58
+
59
+ ```python
60
+ from ultralyticsplus import YOLO, render_result
61
+
62
+ # load model
63
+ model = YOLO('chanelcolgate/cadivi-segment-yolov8m-v2')
64
+
65
+ # set model parameters
66
+ model.overrides['conf'] = 0.25 # NMS confidence threshold
67
+ model.overrides['iou'] = 0.45 # NMS IoU threshold
68
+ model.overrides['agnostic_nms'] = False # NMS class-agnostic
69
+ model.overrides['max_det'] = 1000 # maximum number of detections per image
70
+
71
+ # set image
72
+ image = 'https://github.com/ultralytics/yolov5/raw/master/data/images/zidane.jpg'
73
+
74
+ # perform inference
75
+ results = model.predict(image)
76
+
77
+ # observe results
78
+ print(results[0].boxes)
79
+ print(results[0].masks)
80
+ render = render_result(model=model, image=image, result=results[0])
81
+ render.show()
82
+ ```
83
+