Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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,
|
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(
|