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

Fix image segmentation example - don't reopen image #30481

Merged

Conversation

amyeroberts
Copy link
Collaborator

@amyeroberts amyeroberts commented Apr 25, 2024

What does this PR do?

Fixes bug in current image segmentation examples, where Image.open(image) was called on an image which was already a PIL.Image.Image object

Fixes #30467

@amyeroberts amyeroberts requested a review from merveenoyan April 25, 2024 11:01
@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@amyeroberts amyeroberts changed the title Fix image segmentation example - don't repoen image Fix image segmentation example - don't reopen image Apr 25, 2024
@amyeroberts amyeroberts requested a review from NielsRogge May 1, 2024 12:17
Copy link
Contributor

@NielsRogge NielsRogge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@amyeroberts amyeroberts merged commit d2feb54 into huggingface:main May 1, 2024
8 checks passed
@amyeroberts amyeroberts deleted the fix-image-segmentation-examples branch May 1, 2024 15:53
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.

image-segmentation: AttributeError: read
3 participants