Closed ShChen233 closed 4 months ago
Hi, i might not fully understand your question here. if you are using encoder_adapter_depth, it means you would like to use Adapter for fine-tune the model; thus for the other fine-tune methods such as only update decoder/ or use LoRA; this args.encoder_adapter_depths is not used.
Also, for different Encoder architecture, you need to edit the args.encoder_adapter_depths accordingly, such as for vit-h, you need to do range(0,32).
If you are asking where in my piece of code i am referring to this args to add Adapters, it is in sam/modeling/image_encoder.py.
Generally, it refers to the args.if_encoder_adapter and (self.depth in self.args.encoder_adapter_depths).
Please let me know if this answers your question, and feel free to add additional comments!!
Thank you very much!