MCPcopy Create free account
hub / github.com/UX-Decoder/Semantic-SAM / train

Method train

semantic_sam/backbone/focal_dw.py:689–692  ·  view source on GitHub ↗

Convert the model into training mode while keep layers freezed.

(self, mode=True)

Source from the content-addressed store, hash-verified

687 return outs
688
689 def train(self, mode=True):
690 """Convert the model into training mode while keep layers freezed."""
691 super(FocalNet, self).train(mode)
692 self._freeze_stages()
693
694
695class D2FocalNet(FocalNet, Backbone):

Callers

nothing calls this directly

Calls 1

_freeze_stagesMethod · 0.95

Tested by

no test coverage detected