MiDaS
MiDaS copied to clipboard
Error loading model with timm==0.9.7
Hi there,
I tried to load the pretrained model but met an error "Unexpected key(s) in state_dict: "pretrained.model.blocks.0.attn.relative_position_index", ....". I found that this error only happened with timm=0.9.7 and would be gone with timm==0.6.7. I wonder if there is any plan to support the newest timm. Thanks!
I can load the model again by removing all item in weight containing "relative_position_index".