evit icon indicating copy to clipboard operation
evit copied to clipboard

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

Open ScottHoang opened this issue 2 years ago • 3 comments

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

ScottHoang avatar Jan 06 '23 17:01 ScottHoang

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

youweiliang avatar Feb 27 '23 19:02 youweiliang

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.

xuanmingcui avatar Mar 06 '23 21:03 xuanmingcui

I see. Thanks for the information.

youweiliang avatar Mar 06 '23 22:03 youweiliang