Closed Loping151 closed 1 month ago
This error happens when the 'weights_path' is incorrect (it doesn't load the correct arguments for AsymmetricMASt3R, ends up using the defaults from croco that are not compatible).
with --model_name MASt3R_ViTLarge_BaseDecoder_512_catmlpdpt_metric, it will look for the model in https://huggingface.co/naver/MASt3R_ViTLarge_BaseDecoder_512_catmlpdpt_metric
so either you are using an older version of huggingface_hub that cannot load the safetensors, or you cannot connect to it.
you can try updating huggingface_hub, or manually downloading the checkpoints weights wget https://download.europe.naverlabs.com/ComputerVision/MASt3R/MASt3R_ViTLarge_BaseDecoder_512_catmlpdpt_metric.pth -P checkpoints/
and using --weights checkpoints/MASt3R_ViTLarge_BaseDecoder_512_catmlpdpt_metric.pth instead of using --model_name MASt3R_ViTLarge_BaseDecoder_512_catmlpdpt_metric
Done that. Thank u for your instant response and kind help.
I wonder what happens. It seems to me that this param is passed from
croco_kwargs
, and it is set asI wonder if I got something wrong. I did not change anything before I ran.