MCPcopy Create free account
hub / github.com/YesianRohn/TextSSR / make_zero_conv

Function make_zero_conv

diffusers/src/diffusers/models/controlnet_xs.py:1927–1928  ·  view source on GitHub ↗
(in_channels, out_channels=None)

Source from the content-addressed store, hash-verified

1925
1926
1927def make_zero_conv(in_channels, out_channels=None):
1928 return zero_module(nn.Conv2d(in_channels, out_channels, 1, padding=0))
1929
1930
1931def zero_module(module):

Callers 8

get_down_block_adapterFunction · 0.85
get_mid_block_adapterFunction · 0.85
get_up_block_adapterFunction · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85

Calls 1

zero_moduleFunction · 0.70

Tested by

no test coverage detected