Skip to content

text_sam: Fixed issue when passing PIL Image as input to SamGeo2#370

Merged
giswqs merged 1 commit intoopengeos:mainfrom
cwhite911:samgeo.text_sam
Nov 18, 2024
Merged

text_sam: Fixed issue when passing PIL Image as input to SamGeo2#370
giswqs merged 1 commit intoopengeos:mainfrom
cwhite911:samgeo.text_sam

Conversation

@cwhite911
Copy link
Contributor

I'm adding a GRASS addon i.sam2 and found this bug during implementation. The issue occurs when you pass a PIL Image as input to LangSAM.predict. During this case the image source is not set. However, this causes an issue when LangSam.predict_sam is called throwing a value error in SamGeo2.set_image.

@giswqs giswqs merged commit f674f53 into opengeos:main Nov 18, 2024
@giswqs
Copy link
Member

giswqs commented Nov 18, 2024

@cwhite911 Thank you for the fix. I just released a new version that includes this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants