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)
| 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 | """ |
nothing calls this directly
no test coverage detected