mirror of
https://github.com/vladmandic/automatic
synced 2026-09-20 01:31:13 +02:00
refactor filename pattern handling
This commit is contained in:
@@ -324,8 +324,11 @@ def parse_prompt_attention(text):
|
||||
whitespace = ' '
|
||||
|
||||
def multiply_range(start_position, multiplier):
|
||||
for p in range(start_position, len(res)):
|
||||
res[p][1] *= multiplier
|
||||
try:
|
||||
for p in range(start_position, len(res)):
|
||||
res[p][1] *= multiplier
|
||||
except Exception as e:
|
||||
log(f'Prompt parser: {e}')
|
||||
|
||||
for m in re_attention.finditer(text):
|
||||
text = m.group(0)
|
||||
|
||||
Reference in New Issue
Block a user