youweiliang / evit

Python code for ICLR 2022 spotlight paper EViT: Expediting Vision Transformers via Token Reorganizations
Apache License 2.0
169 stars 19 forks source link

TypeError: EViT.__init__() got an unexpected keyword argument 'default_cfg' #14

Open ScottHoang opened 1 year ago

ScottHoang commented 1 year ago

When running run_code.sh I get this error. Can you help?

youweiliang commented 1 year ago

Under what scenario did you use the code? I think this error won't happen in the original codebase.

xuanmingcui commented 1 year ago

When running run_code.sh I get this error. Can you help?

I believe it's due to the change in timm's build_model_with_cfg function variable name: default_cfg to pretrained_cfg.

youweiliang commented 1 year ago

I see. Thanks for the information.