Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/CompVis/diff2flow
/ sigmoid
Function
sigmoid
diff2flow/diffusion.py:12–13 ·
view source on GitHub ↗
(x)
Source
from the content-addressed store, hash-verified
10
11
12
def
sigmoid(x):
13
return
1 / (1 + np.exp(-x))
14
15
16
def
cosine_log_snr(t, eps=0.00001):
Callers
2
log_snr_to_alpha_bar
Function · 0.85
shifted_cosine_alpha_bar
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected