MCPcopy Create free account
hub / github.com/YesianRohn/TextSSR / multiply_range

Function multiply_range

diffusers/examples/community/lpw_stable_diffusion.py:97–99  ·  view source on GitHub ↗
(start_position, multiplier)

Source from the content-addressed store, hash-verified

95 square_bracket_multiplier = 1 / 1.1
96
97 def multiply_range(start_position, multiplier):
98 for p in range(start_position, len(res)):
99 res[p][1] *= multiplier
100
101 for m in re_attention.finditer(text):
102 text = m.group(0)

Callers 1

parse_prompt_attentionFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected