MCPcopy Index your code
hub / github.com/CompVis/diff2flow / shifted_cosine_alpha_bar

Function shifted_cosine_alpha_bar

diff2flow/diffusion.py:32–33  ·  view source on GitHub ↗
(t, im_size: int, ref_size: int = 64)

Source from the content-addressed store, hash-verified

30
31
32def shifted_cosine_alpha_bar(t, im_size: int, ref_size: int = 64):
33 return sigmoid(shifted_cosine_log_snr(t, im_size, ref_size))
34
35
36class ForwardDiffusion(nn.Module):

Callers 1

__init__Method · 0.85

Calls 2

sigmoidFunction · 0.85
shifted_cosine_log_snrFunction · 0.85

Tested by

no test coverage detected