Skip to content

Commit b82f2ae

Browse files
authored
Fix mask bug in text_sam/predict when the input is PIL image (#117)
1 parent e4234ad commit b82f2ae

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

samgeo/text_sam.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,7 @@ def predict(
274274
) # Convert numpy array to PIL image, excluding the alpha channel
275275
else:
276276
image_pil = image
277+
image_np = np.array(image_pil)
277278

278279
self.image = image_pil
279280

0 commit comments

Comments
 (0)