MCPcopy
hub / github.com/Wan-Video/Wan2.1 / time_shift

Method time_shift

wan/utils/fm_solvers.py:339–340  ·  view source on GitHub ↗
(self, mu: float, sigma: float, t: torch.Tensor)

Source from the content-addressed store, hash-verified

337
338 # Copied from diffusers.schedulers.scheduling_flow_match_euler_discrete.set_timesteps
339 def time_shift(self, mu: float, sigma: float, t: torch.Tensor):
340 return math.exp(mu) / (math.exp(mu) + (1 / t - 1)**sigma)
341
342 # Copied from diffusers.schedulers.scheduling_dpmsolver_multistep.DPMSolverMultistepScheduler.convert_model_output
343 def convert_model_output(

Callers 1

set_timestepsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected