SamDaLamb commited on
Commit
9d45ad7
·
verified ·
1 Parent(s): 5bd136a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -80,6 +80,10 @@ def detect_objects_in_image(image):
80
  mask = pred[:, 4] > conf_thres
81
  pred = pred[mask]
82
  print("passed5")
 
 
 
 
83
  if len(pred) == 0:
84
  return Image.fromarray(np.array(image)), None # Return only image and None for graph
85
  print("passed6")
 
80
  mask = pred[:, 4] > conf_thres
81
  pred = pred[mask]
82
  print("passed5")
83
+ print(len(pred))
84
+ print(Image.fromarray(np.array(image)))
85
+ print(np.array(image))
86
+ print(type(image))
87
  if len(pred) == 0:
88
  return Image.fromarray(np.array(image)), None # Return only image and None for graph
89
  print("passed6")