Spaces:
Runtime error
Runtime error
sdwalker62
commited on
Commit
•
7eb1a91
1
Parent(s):
ab0ae16
Update detect.py
Browse files
detect.py
CHANGED
@@ -51,7 +51,7 @@ from utils.torch_utils import select_device, smart_inference_mode
|
|
51 |
|
52 |
|
53 |
@smart_inference_mode()
|
54 |
-
def
|
55 |
weights=ROOT / 'yolov5s.pt', # model path or triton URL
|
56 |
source=ROOT / 'data/images', # file/dir/URL/glob/screen/0(webcam)
|
57 |
data=ROOT / 'data/coco128.yaml', # dataset.yaml path
|
|
|
51 |
|
52 |
|
53 |
@smart_inference_mode()
|
54 |
+
def detect(
|
55 |
weights=ROOT / 'yolov5s.pt', # model path or triton URL
|
56 |
source=ROOT / 'data/images', # file/dir/URL/glob/screen/0(webcam)
|
57 |
data=ROOT / 'data/coco128.yaml', # dataset.yaml path
|