MCPcopy Create free account
hub / github.com/SooLab/CGFormer / train

Method train

model/backbone.py:491–494  ·  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

489 return tuple(outs)
490
491 def train(self, mode=True):
492 """Convert the model into training mode while keep layers freezed."""
493 super(MultiModalSwinTransformer, self).train(mode)
494 self._freeze_stages()
495
496
497class MMBasicLayer(nn.Module):

Callers 1

trainFunction · 0.80

Calls 1

_freeze_stagesMethod · 0.95

Tested by

no test coverage detected