MCPcopy Create free account
hub / github.com/HYUNJS/SGT / build_centernet_upsample_layer

Function build_centernet_upsample_layer

projects/CenterNet/centernet/build.py:17–24  ·  view source on GitHub ↗
(cfg)

Source from the content-addressed store, hash-verified

15
16
17def build_centernet_upsample_layer(cfg):
18 upsample_layer_name = cfg.MODEL.CENTERNET.UPSAMPLE_LAYER.NAME
19 if upsample_layer_name == '': ## currently, only for hg104 backbone
20 upsample_layer = nn.Identity()
21 upsample_layer.out_channels = 256
22 else:
23 upsample_layer = UPSAMPLE_LAYER_REGISTRY.get(upsample_layer_name)(cfg)
24 return upsample_layer
25
26
27def build_centernet_head(cfg, in_channels):

Callers 1

__init__Method · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected