Ahsen Khaliq commited on
Commit
ab37e4d
1 Parent(s): 4fee8e5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -1
app.py CHANGED
@@ -78,7 +78,6 @@ def inference(img):
78
  outputs = predictor(im)
79
  v = Visualizer(im[:, :, ::-1], metadata)
80
  out = v.draw_instance_predictions(outputs["instances"].to("cpu"))
81
- cv2_imshow(out.get_image()[:, :, ::-1])
82
 
83
  return Image.fromarray(np.uint8(out.get_image())).convert('RGB')
84
 
 
78
  outputs = predictor(im)
79
  v = Visualizer(im[:, :, ::-1], metadata)
80
  out = v.draw_instance_predictions(outputs["instances"].to("cpu"))
 
81
 
82
  return Image.fromarray(np.uint8(out.get_image())).convert('RGB')
83