Skip to content

Commit

Permalink
Fix save masks bug (#318)
Browse files Browse the repository at this point in the history
  • Loading branch information
giswqs authored Sep 21, 2024
1 parent 3e3a310 commit 856a7a0
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions samgeo/samgeo.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,11 +222,10 @@ def generate(
self.masks = masks # Store the masks as a list of dictionaries
self.batch = False

if output is not None:
# Save the masks to the output path. The output is either a binary mask or a mask of objects with unique values.
self.save_masks(
output, foreground, unique, erosion_kernel, mask_multiplier, **kwargs
)
# Save the masks to the output path. The output is either a binary mask or a mask of objects with unique values.
self.save_masks(
output, foreground, unique, erosion_kernel, mask_multiplier, **kwargs
)

def save_masks(
self,
Expand Down

0 comments on commit 856a7a0

Please sign in to comment.