From 8dcac9ac81db587cdac59d01db85c01579156392 Mon Sep 17 00:00:00 2001 From: Daniel <113887727+mortstraze@users.noreply.github.com> Date: Mon, 26 Sep 2022 19:30:18 +1000 Subject: Grids saving to subdirectory when setting unchecked Fixed grids saving to subdirectory when the setting is unchecked but "save images to subdirectory" was checked. --- modules/processing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/processing.py') diff --git a/modules/processing.py b/modules/processing.py index 0246e094..3abf3181 100644 --- a/modules/processing.py +++ b/modules/processing.py @@ -406,7 +406,7 @@ def process_images(p: StableDiffusionProcessing) -> Processed: index_of_first_image = 1 if opts.grid_save: - images.save_image(grid, p.outpath_grids, "grid", all_seeds[0], all_prompts[0], opts.grid_format, info=infotext(), short_filename=not opts.grid_extended_filename, p=p) + images.save_image(grid, p.outpath_grids, "grid", all_seeds[0], all_prompts[0], opts.grid_format, info=infotext(), short_filename=not opts.grid_extended_filename, p=p, grid=True) devices.torch_gc() return Processed(p, output_images, all_seeds[0], infotext(), subseed=all_subseeds[0], all_prompts=all_prompts, all_seeds=all_seeds, all_subseeds=all_subseeds, index_of_first_image=index_of_first_image) -- cgit v1.2.3 From 4ea36a37d69fafcb60cf3f250b6c0e1bcfe82bb1 Mon Sep 17 00:00:00 2001 From: DepFA <35278260+dfaker@users.noreply.github.com> Date: Mon, 26 Sep 2022 15:40:47 +0100 Subject: add sampler properties to StableDiffusionProcessing and Processed --- modules/processing.py | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'modules/processing.py') diff --git a/modules/processing.py b/modules/processing.py index 3abf3181..8d043f4d 100644 --- a/modules/processing.py +++ b/modules/processing.py @@ -78,7 +78,14 @@ class StableDiffusionProcessing: self.paste_to = None self.color_corrections = None self.denoising_strength: float = 0 - + + self.ddim_eta = opts.ddim_eta + self.ddim_discretize = opts.ddim_discretize + self.s_churn = opts.s_churn + self.s_tmin = opts.s_tmin + self.s_tmax = float('inf') # not representable as a standard ui option + self.s_noise = opts.s_noise + if not seed_enable_extras: self.subseed = -1 self.subseed_strength = 0 @@ -117,6 +124,13 @@ class Processed: self.extra_generation_params = p.extra_generation_params self.index_of_first_image = index_of_first_image + self.ddim_eta = p.ddim_eta + self.ddim_discretize = p.ddim_discretize + self.s_churn = p.s_churn + self.s_tmin = p.s_tmin + self.s_tmax = p.s_tmax + self.s_noise = p.s_noise + self.prompt = self.prompt if type(self.prompt) != list else self.prompt[0] self.negative_prompt = self.negative_prompt if type(self.negative_prompt) != list else self.negative_prompt[0] self.seed = int(self.seed if type(self.seed) != list else self.seed[0]) -- cgit v1.2.3