MCPcopy Index your code
hub / github.com/Extraltodeus/DistanceSampler / fix_step_range

Function fix_step_range

custom_samplers.py:98–105  ·  view source on GitHub ↗
(steps, start, end)

Source from the content-addressed store, hash-verified

96 return x.add_(noise)
97
98def 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
108def distance_wrap(

Callers 1

sample_distance_advancedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected