mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 17:24:32 +02:00
add missing metadata
This commit is contained in:
+1
-1
@@ -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}"
|
||||
|
||||
@@ -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):
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user