diff --git a/samgeo/fast_sam.py b/samgeo/fast_sam.py index 5dfc9b54..1bdd41ef 100644 --- a/samgeo/fast_sam.py +++ b/samgeo/fast_sam.py @@ -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())