MCPcopy Create free account
hub / github.com/ToTheBeginning/PuLID / get_lin_function

Function get_lin_function

flux/sampling.py:70–75  ·  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

68
69
70def get_lin_function(
71 x1: float = 256, y1: float = 0.5, x2: float = 4096, y2: float = 1.15
72) -> Callable[[float], float]:
73 m = (y2 - y1) / (x2 - x1)
74 b = y1 - m * x1
75 return lambda x: m * x + b
76
77
78def get_schedule(

Callers 1

get_scheduleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected