We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97a69cf commit ceaae4bCopy full SHA for ceaae4b
segment_anything_fast/predictor.py
@@ -162,8 +162,8 @@ def predict(
162
)
163
164
masks_np = masks[0].detach().cpu().numpy()
165
- iou_predictions_np = iou_predictions[0].detach().cpu().numpy()
166
- low_res_masks_np = low_res_masks[0].detach().cpu().numpy()
+ iou_predictions_np = iou_predictions[0].detach().cpu().float().numpy()
+ low_res_masks_np = low_res_masks[0].detach().cpu().float().numpy()
167
return masks_np, iou_predictions_np, low_res_masks_np
168
169
@torch.no_grad()
0 commit comments