computational-cell-analytics / micro-sam

Segment Anything for Microscopy
https://computational-cell-analytics.github.io/micro-sam/
MIT License
311 stars 35 forks source link

Minor fix to loading incompatible layers #641

Closed anwai98 closed 1 week ago

anwai98 commented 1 week ago

Hi @constantinpape,

This PR deals with checking for layers (typically associated with the mask decoder for our interests at the moment) and only operating on them if they exist in the newly built SAM model with updated model parameters. GTG from my side!