Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/CompVis/diff2flow
/ freeze
Function
freeze
diff2flow/helpers.py:56–58 ·
view source on GitHub ↗
(model: nn.Module)
Source
from the content-addressed store, hash-verified
54
55
56
def
freeze(model: nn.Module):
57
for
param in model.parameters():
58
param.requires_grad = False
59
60
61
def
exists(val):
Callers
2
__init__
Method · 0.90
add_lora_to_unet
Method · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected