MCPcopy Create free account
hub / github.com/OpenImagingLab/FlashVSR / param_groups

Method param_groups

diffsynth/models/wan_video_image_encoder.py:601–614  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

599 nn.init.normal_(block.mlp[2].weight, std=proj_gain)
600
601 def param_groups(self):
602 groups = [{
603 'params': [
604 p for n, p in self.named_parameters()
605 if 'norm' in n or n.endswith('bias')
606 ],
607 'weight_decay': 0.0
608 }, {
609 'params': [
610 p for n, p in self.named_parameters()
611 if not ('norm' in n or n.endswith('bias'))
612 ]
613 }]
614 return groups
615
616
617class XLMRobertaWithHead(XLMRoberta):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected