(steps, start, end)
| 96 | return x.add_(noise) |
| 97 | |
| 98 | def fix_step_range(steps, start, end): |
| 99 | if start < 0: |
| 100 | start = steps + start |
| 101 | if end < 0: |
| 102 | end = steps + end |
| 103 | start = max(0, min(steps - 1, start)) |
| 104 | end = max(0, min(steps - 1, end)) |
| 105 | return (end, start) if start > end else (start, end) |
| 106 | |
| 107 | # Euler and CFGpp part taken from comfy_extras/nodes_advanced_samplers |
| 108 | def distance_wrap( |
no outgoing calls
no test coverage detected