add missing metadata

This commit is contained in:
Vladimir Mandic
2023-08-31 08:06:06 -04:00
parent 418a085246
commit 27a517cedd
6 changed files with 8 additions and 4 deletions
+1 -1
View File
@@ -551,7 +551,7 @@ def save_image(image, path, basename, seed=None, prompt=None, extension='jpg', i
file_decoration = shared.opts.samples_filename_pattern
else:
file_decoration = "[seq]-[prompt_words]"
file_decoration = namegen.apply(file_decoration) + suffix
file_decoration = namegen.apply(file_decoration).strip(' ').strip('-') + suffix
if shared.opts.save_images_add_number:
if '[seq]' not in file_decoration:
file_decoration = f"[seq]-{file_decoration}"
+1
View File
@@ -931,6 +931,7 @@ class StableDiffusionProcessingTxt2Img(StableDiffusionProcessing):
self.extra_generation_params["Hires steps"] = self.hr_second_pass_steps
if self.hr_upscaler is not None:
self.extra_generation_params["Hires upscaler"] = self.hr_upscaler
self.extra_generation_params["Secondary sampler"] = self.latent_sampler
def sample(self, conditioning, unconditional_conditioning, seeds, subseeds, subseed_strength, prompts):
+1
View File
@@ -366,6 +366,7 @@ def process_diffusers(p: StableDiffusionProcessing, seeds, prompts, negative_pro
p.extra_generation_params['Refiner steps'] = p.refiner_steps
p.extra_generation_params['Refiner start'] = p.refiner_start
p.extra_generation_params["Hires steps"] = p.hr_second_pass_steps
p.extra_generation_params["Secondary sampler"] = p.latent_sampler
if not shared.state.interrupted and not shared.state.skipped:
refiner_images = vae_decode(latents=refiner_output.images, model=shared.sd_refiner, full_quality=True)
+2
View File
@@ -495,6 +495,7 @@ def create_ui(startup_timer = None):
(subseed_strength, "Variation strength"),
(clip_skip, "Clip skip"),
(latent_index, "Latent sampler"),
(latent_index, "Secondary sampler"),
(denoising_strength, "Denoising strength"),
(refiner_steps, "Refiner steps"),
(refiner_start, "Refiner start"),
@@ -854,6 +855,7 @@ def create_ui(startup_timer = None):
(subseed_strength, "Variation strength"),
(clip_skip, "Clip skip"),
(latent_index, "Latent sampler"),
(latent_index, "Secondary sampler"),
(denoising_strength, "Denoising strength"),
(refiner_steps, "Refiner steps"),
(refiner_start, "Refiner start"),