diff --git a/modules/processing.py b/modules/processing.py index 04058d519..1ea9ee251 100644 --- a/modules/processing.py +++ b/modules/processing.py @@ -710,8 +710,6 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed: shared.state.sampling_steps = p.steps shared.state.current_latent = latents shared.state.set_current_image() - if p.scripts is not None: - p.scripts.process(p) output = shared.sd_model( # pylint: disable=not-callable prompt=prompts, diff --git a/modules/sd_models.py b/modules/sd_models.py index 688aa3638..ae940ad61 100644 --- a/modules/sd_models.py +++ b/modules/sd_models.py @@ -563,6 +563,7 @@ class PriorPipeline: def load_diffuser(checkpoint_info=None, already_loaded_state_dict=None, timer=None, op='model'): # pylint: disable=unused-argument + import torch # todo: no idea why its undefined here if timer is None: timer = Timer() import logging