Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Nov 18, 2024

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
7 of 8 checks passed
@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