I was running the script visualize_patch_score_distribution.py and triggered a Hugging Face download for "--sam-model-id=facebook/sam2.1-hiera-small" when an error popped out: "You are using a model of type sam2_video to instantiate a model of type sam2". Then I went to the facebook repository of sam2.1-hiera-small and I found that the image and video tasks seem to share the same .pt weight file but the .json configuration differs which is video mode by default.
I was running the script visualize_patch_score_distribution.py and triggered a Hugging Face download for "--sam-model-id=facebook/sam2.1-hiera-small" when an error popped out: "You are using a model of type sam2_video to instantiate a model of type sam2". Then I went to the facebook repository of sam2.1-hiera-small and I found that the image and video tasks seem to share the same .pt weight file but the .json configuration differs which is video mode by default.