pkuliyi2015 / multidiffusion-upscaler-for-automatic1111

Tiled Diffusion and VAE optimize, licensed under CC BY-NC-SA 4.0
Other
4.6k stars 330 forks source link

error when using IMG2IMG #190

Open alenknight opened 1 year ago

alenknight commented 1 year ago

I'm getting the following error when i send to img2img and try to run multidiffusion -

MultiDiffusion hooked into 'Euler a' sampler, Tile size: 96x96, Tile batches: 1, Batch size: 4. (ext: RegionCtrl, ContrlNet) Error running process_batch: C:\AI\stable-diffusion-webui\extensions\sd-dynamic-thresholding\scripts\dynamic_thresholding.py Traceback (most recent call last): File "C:\AI\stable-diffusion-webui\modules\scripts.py", line 435, in process_batch script.process_batch(p, *script_args, **kwargs) File "C:\AI\stable-diffusion-webui\extensions\sd-dynamic-thresholding\scripts\dynamic_thresholding.py", line 127, in process_batch p.sampler = sd_samplers.create_sampler(fixed_sampler_name, p.sd_model) File "C:\AI\stable-diffusion-webui\extensions\multidiffusion-upscaler-for-automatic1111\scripts\tilediffusion.py", line 364, in sd_samplers.create_sampler = lambda name, model: self.create_sampler_hijack( File "C:\AI\stable-diffusion-webui\extensions\multidiffusion-upscaler-for-automatic1111\scripts\tilediffusion.py", line 434, in create_sampler_hijack sampler = sd_samplers.create_sampler_original_md(name, model) AttributeError: module 'modules.sd_samplers' has no attribute 'create_sampler_original_md'

screenshot of the extensions i'm running Screenshot 2023-05-11 at 10 32 56 PM

also : python: 3.10.9  •  torch: 2.0.0+cu118  •  xformers: 0.0.17  •  gradio: 3.28.1  •  commit: [5ab7f213]

Kahsolt commented 1 year ago

This seems another example of webui scripts execution order.... The sd-dynamic-thresholding and tiled-diff both hijacks sd_samplers.create_sampler, so there's may be call order or compatible problem.

Need time to investigate. see also #186

alenknight commented 1 year ago

This seems another example of webui scripts execution order.... The sd-dynamic-thresholding and tiled-diff both hijacks sd_samplers.create_sampler, so there's may be call order or compatible problem.

Need time to investigate. see also #186

thanks for the insight... that put me onto some testing if it helps.

PotatoBananaApple commented 1 year ago

I have been using dynamic threshold with tiled diffusion in img2img and it has been working. I started testing noise inversion today and noticed dynamic threshold does not work when noise inversion enabled. I don't get any errors though. I don't have the latest versions. Don't know exactly what has changed after them.

Multidiffusion: f54a8fc5 Dynamic threshold: 5d3465c4

alenknight commented 1 year ago

I have been using dynamic threshold with tiled diffusion in img2img and it has been working. I started testing noise inversion today and noticed dynamic threshold does not work when noise inversion enabled. I don't get any errors though. I don't have the latest versions. Don't know exactly what has changed after them.

Multidiffusion: f54a8fc5 Dynamic threshold: 5d3465c4

these may be related.... but i think this might need to be a separate issue (though it's possible it's similar seizing of the files as @Kahsolt suggested).... still, might wanna open a ticket for that

alenknight commented 1 year ago

@Kahsolt / @pkuliyi2015 - i did some more testing... some interesting results :

if i close the browser and open a new one... then the error comes back.

so... that's kinda a workaround for now... ?

rehvka commented 1 year ago

anyone find a permanent solution to this? I'm still struggling with it :(

alenknight commented 1 year ago

anyone find a permanent solution to this? I'm still struggling with it :(

It’s still not working yet.

pkuliyi2015 commented 1 year ago

Thanks for bringing it to my attention. I'm busy right now and will check it carefully in my spare time.

PotatoBananaApple commented 1 year ago

Updated after long time, now i am stuck with this issue too 😞

FireHaoSky commented 1 year ago

谢谢你让我注意到它。我现在很忙,有空的时候会仔细查看。

大佬解决了嘛?

hananyakampa commented 1 year ago

did anyone fins solution?

Threnos commented 6 months ago

Bump