segment-anything icon indicating copy to clipboard operation
segment-anything copied to clipboard

State_dict mismatch with the huggingface model

Open max-fofanov opened this issue 2 years ago • 1 comments

I stumbled upon a problem: the models have different amount of keys in their state_dicts. Can you please provide a conversion script?

max-fofanov avatar Nov 01 '23 05:11 max-fofanov

Conversion script is here: https://github.com/huggingface/transformers/blob/main/src/transformers/models/sam/convert_sam_original_to_hf_format.py

NielsRogge avatar Jan 15 '24 18:01 NielsRogge