MCPcopy Create free account
hub / github.com/QWTforGithub/T2LDM / __init__

Method __init__

timm/models/hrnet.py:743–750  ·  view source on GitHub ↗
(self, cfg, in_chans=3, num_classes=1000, global_pool='avg', drop_rate=0.0,
                 feature_location='incre', out_indices=(0, 1, 2, 3, 4))

Source from the content-addressed store, hash-verified

741 """
742
743 def __init__(self, cfg, in_chans=3, num_classes=1000, global_pool='avg', drop_rate=0.0,
744 feature_location='incre', out_indices=(0, 1, 2, 3, 4)):
745 assert feature_location in ('incre', '')
746 super(HighResolutionNetFeatures, self).__init__(
747 cfg, in_chans=in_chans, num_classes=num_classes, global_pool=global_pool,
748 drop_rate=drop_rate, head=feature_location)
749 self.feature_info = FeatureInfo(self.feature_info, out_indices)
750 self._out_idx = {i for i in out_indices}
751
752 def forward_features(self, x):
753 assert False, 'Not supported'

Callers

nothing calls this directly

Calls 2

FeatureInfoClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected