MCPcopy Create free account
hub / github.com/tdrussell/diffusion-pipe / time_shift

Function time_shift

models/cosmos_predict2.py:38–39  ·  view source on GitHub ↗
(mu: float, sigma: float, t: torch.Tensor)

Source from the content-addressed store, hash-verified

36
37
38def time_shift(mu: float, sigma: float, t: torch.Tensor):
39 return math.exp(mu) / (math.exp(mu) + (1 / t - 1) ** sigma)
40
41
42def get_lin_function(x1: float = 256, y1: float = 0.5, x2: float = 4096, y2: float = 1.15):

Callers 1

prepare_inputsMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected