mxin262/SwinTextSpotter

Facing issues while running

Opened this issue · 1 comments

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

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