mxin262 / SwinTextSpotter

Pytorch re-implementation of Paper: SwinTextSpotter: Scene Text Spotting via Better Synergy between Text Detection and Text Recognition (CVPR 2022)
275 stars 42 forks source link

Facing issues while running #116

Open learnmasters opened 9 months ago

learnmasters commented 9 months ago

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 commented 7 months ago

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