Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,7 +11,8 @@ model = YOLO("Bottles_Cans_Classify_v1.pt")
|
|
| 11 |
|
| 12 |
def detect_objects(images):
|
| 13 |
results = model(images)
|
| 14 |
-
classes={ 0:"
|
|
|
|
| 15 |
names=[]
|
| 16 |
for result in results:
|
| 17 |
probs = result.probs.top1
|
|
|
|
| 11 |
|
| 12 |
def detect_objects(images):
|
| 13 |
results = model(images)
|
| 14 |
+
classes={ 0:"Reject", 1:"bottle_100cl", 2:"bottle_150cl", 3:"bottle_200cl", 4:"bottle_25cl", 5:"bottle_33cl", 6:"bottle_50cl", 7:"can" }
|
| 15 |
+
# classes={ 0:"bottle_25cl", 1:"bottle_33cl", 2:"bottle_50cl", 3:"bottle_100cl", 4:"bottle_150cl", 5:"bottle_200cl", 6:"can", 7:"reject" }
|
| 16 |
names=[]
|
| 17 |
for result in results:
|
| 18 |
probs = result.probs.top1
|