AAAAAAyq commited on
Commit
37773b6
·
1 Parent(s): c987532

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -60,7 +60,7 @@ def fast_show_mask(annotation, ax):
60
  def predict(input, input_size):
61
  input_size = int(input_size) # 确保 imgsz 是整数
62
  results = model(input, device='cpu', retina_masks=True, iou=0.7, conf=0.25, imgsz=input_size)
63
- pil_image = fast_process(annotations=results[0].masks.data, image=input)
64
 
65
  return pil_image
66
 
 
60
  def predict(input, input_size):
61
  input_size = int(input_size) # 确保 imgsz 是整数
62
  results = model(input, device='cpu', retina_masks=True, iou=0.7, conf=0.25, imgsz=input_size)
63
+ pil_image = fast_process(annotations=results[0].masks.data.numpy(), image=input)
64
 
65
  return pil_image
66