added [styles] filename pattern

This commit is contained in:
RnDMonkey
2022-09-24 00:47:33 -07:00
committed by AUTOMATIC1111
parent 410bef0853
commit a2bea2f97a
2 changed files with 3 additions and 2 deletions

View File

@@ -290,6 +290,7 @@ def apply_filename_pattern(x, p, seed, prompt):
x = x.replace("[cfg]", str(p.cfg_scale))
x = x.replace("[width]", str(p.width))
x = x.replace("[height]", str(p.height))
x = x.replace("[styles]", sanitize_filename_part(", ".join(p.styles), replace_spaces=False))
x = x.replace("[sampler]", sanitize_filename_part(sd_samplers.samplers[p.sampler_index].name, replace_spaces=False))
x = x.replace("[model_hash]", shared.sd_model.sd_model_hash)