(x1: float = 256, y1: float = 0.5, x2: float = 4096, y2: float = 1.15)
| 17 | |
| 18 | |
| 19 | def get_lin_function(x1: float = 256, y1: float = 0.5, x2: float = 4096, y2: float = 1.15): |
| 20 | m = (y2 - y1) / (x2 - x1) |
| 21 | b = y1 - m * x1 |
| 22 | return lambda x: m * x + b |
| 23 | |
| 24 | |
| 25 | class SD3Pipeline(BasePipeline): |