Lewislou commited on
Commit
78c1675
·
1 Parent(s): 7a1cd48

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -43,7 +43,7 @@ def predict(img_name, model=None, device=None, reduce_labels=True):
43
  my_model.load_checkpoints(checkpoints)
44
  with torch.no_grad():
45
  output = my_model(pre_img_data)
46
- overlay = visualize_instances_map(pre_img_data,star_label)
47
  #cv2.imwrite('prediction.png', cv2.cvtColor(overlay, cv2.COLOR_RGB2BGR))
48
  return overlay
49
  gr.Interface(
 
43
  my_model.load_checkpoints(checkpoints)
44
  with torch.no_grad():
45
  output = my_model(pre_img_data)
46
+ overlay = visualize_instances_map(pre_img_data,output)
47
  #cv2.imwrite('prediction.png', cv2.cvtColor(overlay, cv2.COLOR_RGB2BGR))
48
  return overlay
49
  gr.Interface(