Skip to content

Commit

Permalink
mask overlay corrected
Browse files Browse the repository at this point in the history
  • Loading branch information
ro-hit81 committed Oct 22, 2024
2 parents c682fea + 9d30aa0 commit 510c626
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions samgeo/text_sam.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,8 +342,10 @@ def predict(

if boxes.nelement() == 0: # No "object" instances found
print("No objects found in the image.")
mask_overlay = np.zeros_like(image_np[..., 0], dtype=dtype) # Create an empty mask overlay

mask_overlay = np.zeros_like(
image_np[..., 0], dtype=dtype
) # Create an empty mask overlay

else:
# Create an empty image to store the mask overlays
mask_overlay = np.zeros_like(
Expand Down

0 comments on commit 510c626

Please sign in to comment.