Spaces:
Running
on
CPU Upgrade
Stable diffusion - Solution for anyone getting error on batch processing on extras
Hello, for my part the error comes straight from the native code of stable diffusion web-ui, download on https://github.com/AUTOMATIC1111/stable-diffusion-webui
To solve the problem you must access the following path in your webui stable diffusion folder:
stable-diffusion-webui\modules
then you open the postprocessing.py file in this path that you have just accessed with a code editor like "Visual studio code", you go to line 21 where there is written:
image = Image.open(img)
And replace it with:
image = Image.open(img.name)
You save the file to make the changes to Image.py and then you have to close the stable diffusion web-ui command prompt if it was already open and then you reopen as usual "webui-user" to start stable diffusion so there !
I hope this will solve the problems of some who had to be in difficulty, on the other hand make sure you have the latest version of pillow if it is not already, made on the command prompt (cmd) on windows:
pip install --upgrade Pillow
(obviously if you are there, normally you should already have pip installed, as well as git, python 3.10.6 ... otherwise you can watch the tutorials on youtube, there are plenty that explain very well)
thx for solution.it helped me to solve the error with the batch in EXTRAS on automatic1111
Now i can choose all in Batch !
thx for this !
you're welcome
Thank you, it worked