MCPcopy Create free account
hub / github.com/HiLab-git/SSL4MIS / patch_first_conv

Function patch_first_conv

code/networks/encoder_tool.py:33–64  ·  view source on GitHub ↗

Change first convolution layer input channels. In case: in_channels == 1 or in_channels == 2 -> reuse original weights in_channels > 3 -> make random kaiming normal initialization

(model, in_channels)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

set_in_channelsMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected