Update README.md
Browse files
README.md
CHANGED
@@ -31,14 +31,14 @@ from ultralytics import YOLO
|
|
31 |
# load model
|
32 |
model = YOLO('camiloa2m/TabDetect-YOLOv8s')
|
33 |
|
34 |
-
# set model parameters
|
35 |
model.overrides['conf'] = 0.25 # NMS confidence threshold
|
36 |
model.overrides['iou'] = 0.45 # NMS IoU threshold
|
37 |
model.overrides['agnostic_nms'] = False # NMS class-agnostic
|
38 |
model.overrides['max_det'] = 1000 # maximum number of detections per image
|
39 |
|
40 |
# set image
|
41 |
-
image = '
|
42 |
|
43 |
# perform inference
|
44 |
results = model.predict(image)
|
|
|
31 |
# load model
|
32 |
model = YOLO('camiloa2m/TabDetect-YOLOv8s')
|
33 |
|
34 |
+
# set model parameters (optional)
|
35 |
model.overrides['conf'] = 0.25 # NMS confidence threshold
|
36 |
model.overrides['iou'] = 0.45 # NMS IoU threshold
|
37 |
model.overrides['agnostic_nms'] = False # NMS class-agnostic
|
38 |
model.overrides['max_det'] = 1000 # maximum number of detections per image
|
39 |
|
40 |
# set image
|
41 |
+
image = '<URL or Path to an image'
|
42 |
|
43 |
# perform inference
|
44 |
results = model.predict(image)
|