Skip to content

Commit

Permalink
undefined attribute in fast sam, fixed by setting the image variable (#…
Browse files Browse the repository at this point in the history
…384)

Co-authored-by: Janette Rounds <janette@ecometrixsolutions.com>
  • Loading branch information
pherateriw and janetteeco authored Jan 3, 2025
1 parent 956f644 commit c6328be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions samgeo/fast_sam.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,9 @@ def fast_show_mask(
Returns:
np.ndarray: The mask of the image.
"""

target_height = self.image.shape[0]
target_width = self.image.shape[1]
image = self.prompt_process.img
target_height = image.shape[0]
target_width = image.shape[1]
annotations = self.annotations
annotation = np.array(annotations.cpu())

Expand Down

0 comments on commit c6328be

Please # to comment.