aboutsummaryrefslogtreecommitdiff
path: root/modules/images.py
diff options
context:
space:
mode:
authorJared Deckard <jared@shademaps.com>2023-06-15 10:53:16 -0500
committerJared Deckard <jared@shademaps.com>2023-06-15 11:00:11 -0500
commit8f18e672439fa1926717df2c938e7089149f3a8b (patch)
tree7fd495d065e9c2393d9d2cefb88eac358048d745 /modules/images.py
parentd3c86e5178725b11a4679097f0aefb0a9fc90014 (diff)
Add a user pattern to the filename generator
Diffstat (limited to 'modules/images.py')
-rw-r--r--modules/images.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/images.py b/modules/images.py
index 40efc96c..92b924ef 100644
--- a/modules/images.py
+++ b/modules/images.py
@@ -359,6 +359,7 @@ class FilenameGenerator:
'hasprompt': lambda self, *args: self.hasprompt(*args), # accepts formats:[hasprompt<prompt1|default><prompt2>..]
'clip_skip': lambda self: opts.data["CLIP_stop_at_last_layers"],
'denoising': lambda self: self.p.denoising_strength if self.p and self.p.denoising_strength else NOTHING_AND_SKIP_PREVIOUS_TEXT,
+ 'user': lambda self: self.p.user,
}
default_time_format = '%Y%m%d%H%M%S'