clovaai / donut

Official Implementation of OCR-free Document Understanding Transformer (Donut) and Synthetic Document Generator (SynthDoG), ECCV 2022
https://arxiv.org/abs/2111.15664
MIT License
5.53k stars 444 forks source link

Python 3.10 throws an error related to swintransformer #234

Open thistleknot opened 11 months ago

thistleknot commented 11 months ago

https://github.com/SwinTransformer/Swin-Transformer-Object-Detection/issues/214

whether 3.11 (rl9), 3.10 (rl9), 3.7 (3.7 ubu22 using conda/wsl) AttributeError: 'SwinTransformer' object has no attribute 'pos_drop'

poetaster commented 9 months ago

I tried creating a custom env with conda, but it's not even possible to install the libraries as listed. any idea for a patch?

poetaster commented 9 months ago

duplicate of #207

The solution presented here ( comment out the one line) does indeed work (with timm=0.9.7)

crackthedata commented 9 months ago

@poetaster this fix worked for me :-)

poetaster commented 9 months ago

@poetaster this fix worked for me :-)

Yeah, me too, just after some detours ;) Now if I could get VisionEncoder model chkpoints loading :)

7soonyounes commented 4 months ago

i tried to unistall and install timm==0.5.4 but i still have this problem 'SwinTransformer' object has no attribute 'pos_drop'