lllyasviel / stable-diffusion-webui-forge

GNU Affero General Public License v3.0
7.33k stars 711 forks source link

*** Error running process_before_every_sampling #920

Open dron28 opened 1 month ago

dron28 commented 1 month ago

C:\forge\webui\extensions-builtin\sd_forge_kohya_hrfix\scripts\kohya_hrfix.py Traceback (most recent call last): File "C:\forge\webui\modules\scripts.py", line 892, in process_before_every_sampling script.process_before_every_sampling(p, *script_args, **kwargs) File "C:\forge\webui\extensions-builtin\sd_forge_kohya_hrfix\scripts\kohya_hrfix.py", line 42, in process_before_every_sampling unet = opPatchModelAddDownscale.patch(unet, block_number, downscale_factor, start_percent, end_percent, downscale_after_skip, downscale_method, upscale_method)[0] File "C:\forge\webui\ldm_patched\contrib\external_model_downscale.py", line 27, in patch sigma_start = model.model.model_sampling.percent_to_sigma(start_percent) File "C:\forge\system\python\lib\site-packages\torch\nn\modules\module.py", line 1695, in getattr raise AttributeError(f"'{type(self).name}' object has no attribute '{name}'") AttributeError: 'KModel' object has no attribute 'model_sampling'


dron28 commented 1 month ago

working

wanesoft commented 1 month ago

@dron28 how did you fix it?

dron28 commented 1 month ago

@wanesoft with the new update it was fixed 2 days ago