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

PIL.Image AttributeError #176

Open
mfonekpo opened this issue Sep 30, 2023 · 1 comment
Open

PIL.Image AttributeError #176

mfonekpo opened this issue Sep 30, 2023 · 1 comment

Comments

@mfonekpo
Copy link

There is an error message whenever I run this code:

from pixellib.torchbackend.instance import instanceSegmentation

Indicating that there is an AttributeError because the Image module from the PIL (Pillow) library does not have an attribute LINEAR. It suggests using BILINEAR instead, which is a correct attribute and represents a resampling filter for resizing images.

The fix to this is to change the interp=Image.LINEAR to interp=Image.BILINEAR in line 46 col 65 in the transform.py file.

@grant-oscillolabs
Copy link

Came across this error today, fix suggested above works for me as well.

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

No branches or pull requests

2 participants