Skip to content

fix: add try-except block when import resampling from PIL.Image #136

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

Merged
merged 1 commit into from
Apr 12, 2023
Merged

fix: add try-except block when import resampling from PIL.Image #136

merged 1 commit into from
Apr 12, 2023

Conversation

elenacliu
Copy link
Contributor

#134 #135

Fix the possible PIL version problems. Besides, according to huggingface/pytorch-image-models#1256, Resampling enum was introduced since PIL 9.1.0.

@sicxu sicxu merged commit 1e84058 into sicxu:master Apr 12, 2023
@sicxu
Copy link
Owner

sicxu commented Apr 12, 2023

Thanks for your fix.

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