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

Facing issues while running #116

Open
learnmasters opened this issue Feb 17, 2024 · 1 comment
Open

Facing issues while running #116

learnmasters opened this issue Feb 17, 2024 · 1 comment

Comments

@learnmasters
Copy link

learnmasters commented Feb 17, 2024

I am trying from last few days in google colab and I am getting issues in detectron2. The errors are as below
I got the below error
File "/content/SwinTextSpotter/detectron2/data/transforms/transform.py", line 46, in ExtentTransform
def init(self, src_rect, output_size, interp=Image.LINEAR, fill=0):
AttributeError: module 'PIL.Image' has no attribute 'LINEAR'. Did you mean: 'BILINEAR'?

To solve this I run the commands (to uninstall 10.2.0 and install 9.5.0)
!pip uninstall Pillow
!pip install Pillow==9.5.0

After that I am getting the following error
File "/content/SwinTextSpotter/detectron2/data/transforms/augmentation_impl.py", line 37, in
class SpeckleTransform(Transform):
NameError: name 'Transform' is not defined. Did you mean: 'CropTransform'?

Can you please help me

@mxin262
Copy link
Owner

mxin262 commented Apr 9, 2024

Try to run
cd detectron2; python setup.py build develop

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