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

Function shifted_cosine_log_snr

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

Source from the content-addressed store, hash-verified

22
23
24def shifted_cosine_log_snr(t, im_size: int, ref_size: int = 64):
25 return cosine_log_snr(t) + 2 * np.log(ref_size / im_size)
26
27
28def log_snr_to_alpha_bar(t):

Callers 1

shifted_cosine_alpha_barFunction · 0.85

Calls 1

cosine_log_snrFunction · 0.85

Tested by

no test coverage detected