Skip to content

Commit 3f41abc

Browse files
authored
Add files via upload
1 parent 8e0f123 commit 3f41abc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

inference_real.py

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
from ultralytics import YOLO
2+
import cv2
3+
4+
path_to_model="last.pt"
5+
model = YOLO(path_to_model)
6+
results=model.predict(source="0",show=True,iou=0.2,conf=0.6, device="cuda")
7+
print("hello")

0 commit comments

Comments
 (0)