(x1: float = 256, y1: float = 0.5, x2: float = 4096, y2: float = 1.15)
| 29 | |
| 30 | |
| 31 | def get_lin_function(x1: float = 256, y1: float = 0.5, x2: float = 4096, y2: float = 1.15): |
| 32 | m = (y2 - y1) / (x2 - x1) |
| 33 | b = y1 - m * x1 |
| 34 | return lambda x: m * x + b |
| 35 | |
| 36 | |
| 37 | class HiDreamPipeline(BasePipeline): |