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

Function time_shift

models/hidream.py:27–28  ·  view source on GitHub ↗
(mu: float, sigma: float, t: torch.Tensor)

Source from the content-addressed store, hash-verified

25
26
27def time_shift(mu: float, sigma: float, t: torch.Tensor):
28 return math.exp(mu) / (math.exp(mu) + (1 / t - 1) ** sigma)
29
30
31def 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