From 4ea908ccd4a18309688dc812bb081c8f56072bfc Mon Sep 17 00:00:00 2001 From: Vladimir Mandic Date: Thu, 16 Nov 2023 09:55:15 -0500 Subject: [PATCH] cleanup --- extensions-builtin/Lora/networks.py | 2 +- modules/processing_diffusers.py | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/extensions-builtin/Lora/networks.py b/extensions-builtin/Lora/networks.py index 9897decab..6b638fcda 100644 --- a/extensions-builtin/Lora/networks.py +++ b/extensions-builtin/Lora/networks.py @@ -175,7 +175,7 @@ def load_networks(names, te_multipliers=None, unet_multipliers=None, dyn_dims=No else: net = load_network(name, network_on_disk) except Exception as e: - shared.log.error(f"LoRA load failed: file={network_on_disk.filename}") + shared.log.error(f"LoRA load failed: file={network_on_disk.filename} {e}") if debug: errors.display(e, f"LoRA load failed file={network_on_disk.filename}") continue diff --git a/modules/processing_diffusers.py b/modules/processing_diffusers.py index e3f330189..fc18fa8b9 100644 --- a/modules/processing_diffusers.py +++ b/modules/processing_diffusers.py @@ -433,9 +433,6 @@ def process_diffusers(p: StableDiffusionProcessing, seeds, prompts, negative_pro shared.log.debug(f'Steps: type=refiner input={p.refiner_steps} output={steps} start={p.refiner_start} denoise={p.denoising_strength}') return max(2, int(steps)) - a = 1 - a = (a * 2) - # pipeline type is set earlier in processing, but check for sanity if sd_models.get_diffusers_task(shared.sd_model) != sd_models.DiffusersTaskType.TEXT_2_IMAGE and len(getattr(p, 'init_images' ,[])) == 0: shared.sd_model = sd_models.set_diffuser_pipe(shared.sd_model, sd_models.DiffusersTaskType.TEXT_2_IMAGE) # reset pipeline