pkuliyi2015 / multidiffusion-upscaler-for-automatic1111

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

Error after generating image #372

Closed heftig closed 6 months ago

heftig commented 6 months ago

Since the latest update (#371) I get an error in the terminal after generating an image (with MultiDiffusion and DemoFusion disabled):

*** Error running postprocess_batch_list: C:\Users\janst\AI\stable-diffusion-webui\extensions\multidiffusion-upscaler-for-automatic1111\scripts\tileglobal.py[00:03<00:00, 20.53it/s]
    Traceback (most recent call last):
      File "C:\Users\janst\AI\stable-diffusion-webui\modules\scripts.py", line 868, in postprocess_batch_list
        script.postprocess_batch_list(p, pp, *script_args, **kwargs)
      File "C:\Users\janst\AI\stable-diffusion-webui\extensions\multidiffusion-upscaler-for-automatic1111\scripts\tileglobal.py", line 227, in postprocess_batch_list
        pp.images[idx] = image[:,:image.shape[1]//(p.scale_factor)*(idx_b+1),:image.shape[2]//(p.scale_factor)*(idx_b+1)]
                                                   ^^^^^^^^^^^^^^
    AttributeError: 'StableDiffusionProcessingTxt2Img' object has no attribute 'scale_factor'
swumagic commented 6 months ago

me too

CH-ZH commented 6 months ago

Same here.

Sesame7 commented 6 months ago

Same, here. Stable Diffusion WebUI works everything fine on my laptop till yesterday. After I updated some plugins today, this error message appears on my laptop.

BannyLon commented 6 months ago

It seems like after the upgrade

CalladsEssence commented 6 months ago

Disclaimer: very crude solution! This will probably break something else if MultiDiffusion and/or DemoFusion are enabled, so use at own risk :)

Browse to: stable-diffusion-webui\extensions\multidiffusion-upscaler-for-automatic1111\scripts

Now FIRST make a copy of tileglobal.py and store it outside the folder. (If you keep the copy in the same folder, it will still be read and produce the same error).

Now open the original file tileglobal.py in notepad++ and remove a complete section starting at line 224 to 237. (so 14 lines are removed). Save the file and re-start the server. (So close A1111 completely and start it up again).

Should work for normal txt2img with hires fix and img2img also. If you find something else broken by this solution, simply restore the file you have copied.

When there is a -real- solution, the file will be updated automatically with regular updates.

HyperTwo commented 6 months ago

the same problem

TheSummerRain commented 6 months ago

我也是

Jaylen-Lee commented 6 months ago

just update to latest version, and this bug has been fixed

CalladsEssence commented 6 months ago

Confirmed. No more errors after update! :)