Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TencentARC/BrushNet
/ zero_module
Function
zero_module
src/diffusers/models/brushnet.py:928–931 ·
view source on GitHub ↗
(module)
Source
from the content-addressed store, hash-verified
926
927
928
def
zero_module(module):
929
for
p in module.parameters():
930
nn.init.zeros_(p)
931
return
module
Callers
1
__init__
Method · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected