tianrun-chen / SAM-Adapter-PyTorch

Adapting Meta AI's Segment Anything to Downstream Tasks with Adapters and Prompts
MIT License
1k stars 89 forks source link

Freeze encoder #31

Closed zkyseu closed 1 year ago

zkyseu commented 1 year ago

Hi, thanks for your wonderful work! I have a question that SAM-adapter freezes the image encoder which is described in the paper. But I see that although the freeze code is provided, they are not runned. Whether is it necessary to freeze image encoder. Thanks!

tianrun-chen commented 1 year ago

As we mentioned in our manuscript, our approach involves an adaptation method that eliminates the need for lengthy fine-tuning. It's possible to fine-tune the SAM on your specific task without freezing the image encoder and also utilize the adapters' input.

yjdzyr commented 6 months ago

Hi, thanks for your wonderful work! I have a question that SAM-adapter freezes the image encoder which is described in the paper. But I see that although the freeze code is provided, they are not runned. Whether is it necessary to freeze image encoder. Thanks!

Hi.Where's the code for the freeze encoder.Could you please tell me