MCPcopy Create free account
hub / github.com/OpenGVLab/UniFormerV2 / __init__

Method __init__

slowfast/models/video_model_builder.py:166–181  ·  view source on GitHub ↗

The `__init__` method of any subclass should also contain these arguments. Args: cfg (CfgNode): model building configs, details are in the comments of the config file.

(self, cfg)

Source from the content-addressed store, hash-verified

164 """
165
166 def __init__(self, cfg):
167 """
168 The `__init__` method of any subclass should also contain these
169 arguments.
170 Args:
171 cfg (CfgNode): model building configs, details are in the
172 comments of the config file.
173 """
174 super(SlowFast, self).__init__()
175 self.norm_module = get_norm(cfg)
176 self.enable_detection = cfg.DETECTION.ENABLE
177 self.num_pathways = 2
178 self._construct_network(cfg)
179 init_helper.init_weights(
180 self, cfg.MODEL.FC_INIT_STD, cfg.RESNET.ZERO_INIT_FINAL_BN
181 )
182
183 def _construct_network(self, cfg):
184 """

Callers

nothing calls this directly

Calls 3

_construct_networkMethod · 0.95
get_normFunction · 0.90
__init__Method · 0.45

Tested by

no test coverage detected