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

Method train

semantic_sam/backbone/focal.py:592–595  ·  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

590 return outs
591
592 def train(self, mode=True):
593 """Convert the model into training mode while keep layers freezed."""
594 super(FocalNet, self).train(mode)
595 self._freeze_stages()
596
597
598class D2FocalNet(FocalNet, Backbone):

Callers 2

testMethod · 0.45
mainFunction · 0.45

Calls 1

_freeze_stagesMethod · 0.95

Tested by

no test coverage detected