D3V1L1810 commited on
Commit
2f1b860
·
verified ·
1 Parent(s): 1ddbf19

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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:"bottle_25cl", 1:"bottle_33cl", 2:"bottle_50cl", 3:"bottle_100cl", 4:"bottle_150cl", 5:"bottle_200cl", 6:"can", 7:"reject" }
 
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