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.86k stars 476 forks source link

Python 3.10 throws an error related to swintransformer #234

Open thistleknot opened 1 year ago

thistleknot commented 1 year 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 1 year 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 1 year ago

duplicate of #207

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

crackthedata commented 1 year ago

@poetaster this fix worked for me :-)

poetaster commented 1 year 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 8 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'