From 6964b3bd1d184f1009b1361435385ced2a28a4cd Mon Sep 17 00:00:00 2001 From: richardsonnick Date: Mon, 31 Mar 2025 23:24:54 -0400 Subject: [PATCH] Add random number generator source to filename Adds option for random number generator source for filename generator. --- modules/images.py | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/images.py b/modules/images.py index cfdfb3384..b5229b60c 100644 --- a/modules/images.py +++ b/modules/images.py @@ -409,6 +409,7 @@ class FilenameGenerator: 'generation_number': lambda self: NOTHING_AND_SKIP_PREVIOUS_TEXT if (self.p.n_iter == 1 and self.p.batch_size == 1) or self.zip else self.p.iteration * self.p.batch_size + self.p.batch_index + 1, 'hasprompt': lambda self, *args: self.hasprompt(*args), # accepts formats:[hasprompt..] 'clip_skip': lambda self: opts.data["CLIP_stop_at_last_layers"], + 'randn_source': lambda self: opts.data["randn_source"], '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, 'vae_filename': lambda self: self.get_vae_filename(),