Traceback (most recent call last): File "B:\_StableDiff\stable-diffusion-webui\webui\modules\call_queue.py", line 74, in f res = list(func(*args, **kwargs)) File "B:\_StableDiff\stable-diffusion-webui\webui\modules\call_queue.py", line 53, in f res = func(*args, **kwargs) File "B:\_StableDiff\stable-diffusion-webui\webui\modules\call_queue.py", line 37, in f res = func(*args, **kwargs) File "B:\_StableDiff\stable-diffusion-webui\webui\modules\img2img.py", line 232, in img2img processed = process_batch(p, img2img_batch_upload, output_dir, inpaint_mask_dir, args, to_scale=selected_scale_tab == 1, scale_by=scale_by, use_png_info=img2img_batch_use_png_info, png_info_props=img2img_batch_png_info_props, png_info_dir=png_info_dir) File "B:\_StableDiff\stable-diffusion-webui\webui\extensions\sd-webui-controlnet\scripts\batch_hijack.py", line 34, in img2img_process_batch_hijack return getattr(img2img, '__controlnet_original_process_batch')(p, *args, **kwargs) File "B:\_StableDiff\stable-diffusion-webui\webui\modules\img2img.py", line 131, in process_batch proc = modules.scripts.scripts_img2img.run(p, *args) File "B:\_StableDiff\stable-diffusion-webui\webui\modules\scripts.py", line 780, in run processed = script.run(p, *script_args) File "B:\_StableDiff\stable-diffusion-webui\webui\scripts\prompts_from_file.py", line 183, in run proc = process_images(copy_p) File "B:\_StableDiff\stable-diffusion-webui\webui\modules\processing.py", line 847, in process_images res = process_images_inner(p) File "B:\_StableDiff\stable-diffusion-webui\webui\extensions\sd-webui-controlnet\scripts\batch_hijack.py", line 59, in processing_process_images_hijack return getattr(processing, '__controlnet_original_process_images_inner')(p, *args, **kwargs) File "B:\_StableDiff\stable-diffusion-webui\webui\modules\processing.py", line 988, in process_images_inner samples_ddim = p.sample(conditioning=p.c, unconditional_conditioning=p.uc, seeds=p.seeds, subseeds=p.subseeds, subseed_strength=p.subseed_strength, prompts=p.prompts) File "B:\_StableDiff\stable-diffusion-webui\webui\modules\processing.py", line 1774, in sample samples = self.sampler.sample_img2img(self, self.init_latent, x, conditioning, unconditional_conditioning, image_conditioning=self.image_conditioning) File "B:\_StableDiff\stable-diffusion-webui\webui\modules\sd_samplers_kdiffusion.py", line 184, in sample_img2img samples = self.launch_sampling(t_enc + 1, lambda: self.func(self.model_wrap_cfg, xi, extra_args=self.sampler_extra_args, disable=False, callback=self.callback_state, **extra_params_kwargs)) File "B:\_StableDiff\stable-diffusion-webui\webui\modules\sd_samplers_common.py", line 272, in launch_sampling return func() File "B:\_StableDiff\stable-diffusion-webui\webui\modules\sd_samplers_kdiffusion.py", line 184, in samples = self.launch_sampling(t_enc + 1, lambda: self.func(self.model_wrap_cfg, xi, extra_args=self.sampler_extra_args, disable=False, callback=self.callback_state, **extra_params_kwargs)) File "B:\_StableDiff\stable-diffusion-webui\system\python\lib\site-packages\torch\utils\_contextlib.py", line 115, in decorate_context return func(*args, **kwargs) File "B:\_StableDiff\stable-diffusion-webui\webui\repositories\k-diffusion\k_diffusion\sampling.py", line 651, in sample_dpmpp_2m_sde h_last = h UnboundLocalError: local variable 'h' referenced before assignment