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

Function get_lin_function

models/cosmos_predict2.py:42–45  ·  view source on GitHub ↗
(x1: float = 256, y1: float = 0.5, x2: float = 4096, y2: float = 1.15)

Source from the content-addressed store, hash-verified

40
41
42def get_lin_function(x1: float = 256, y1: float = 0.5, x2: float = 4096, y2: float = 1.15):
43 m = (y2 - y1) / (x2 - x1)
44 b = y1 - m * x1
45 return lambda x: m * x + b
46
47
48def _video_vae(pretrained_path=None, z_dim=None, device='cpu', **kwargs):

Callers 1

prepare_inputsMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected