Update app.py
Browse files
app.py
CHANGED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from ultralytics import YOLO
|
2 |
+
|
3 |
+
model = YOLO('best.pt')
|
4 |
+
|
5 |
+
image_path = input("Enter image path: ")
|
6 |
+
results = model(image_path, device = 0, amp = 'True') # return a list of Results objects
|
7 |
+
|
8 |
+
print(results)
|