Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/VisionXLab/OF-Diff
/ nonlinearity
Function
nonlinearity
ldm/modules/diffusionmodules/model.py:48–50 ·
view source on GitHub ↗
(x)
Source
from the content-addressed store, hash-verified
46
47
48
def
nonlinearity(x):
49
# swish
50
return
x*torch.sigmoid(x)
51
52
53
def
Normalize(in_channels, num_groups=32):
Callers
6
forward
Method · 0.85
forward
Method · 0.85
forward
Method · 0.85
forward
Method · 0.85
forward
Method · 0.85
forward
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected