Skip to content

Commit

Permalink
Fix permute bug in order to have several output masks and images
Browse files Browse the repository at this point in the history
Fix permute bug in order to have several output masks and images
  • Loading branch information
antoinedelplace committed Nov 29, 2023
1 parent 906a51f commit 52215ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def sam_segment(
point_labels=None,
boxes=transformed_boxes.to(sam_device),
multimask_output=False)
masks = masks.permute(1, 0, 2, 3).cpu().numpy()
masks = masks.cpu().numpy()
return create_tensor_output(image_np, masks, boxes)


Expand Down

0 comments on commit 52215ae

Please sign in to comment.