-
-
Notifications
You must be signed in to change notification settings - Fork 882
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: image-to-image won't run. TypeError: string indices must be integers #610
Comments
Reading the old closed issues of this happening, the work-around still works: Click MASK, then click 'x' to clear the mask, then click back to CROP, then click generate and that fixes the problem, no errors when I do that work-around. |
Thanks, this worked for me. |
Investigating |
Been investigating this, it seems to be a ui issue related to the 2 different gr.Image, how they are given to the functions, and possibly something related to the default image My changes so far: https://github.com/hlky/stable-diffusion-webui/tree/img2img-fix If you could test and report back I can get this merged What works:
What doesn't work: Untested: |
Would be better if tutorials didn't go against the very clear instructions to not use the dev repo directly though 🤷 |
I tried this im2img-fix branch and I'm still getting errors on anything I try to generate in img2img : sd | Traceback (most recent call last): |
I think you're just running it with empty prompt which is not supported |
There is a fix in the |
fixes have been merged to master |
What happened?
I JUST downloaded the repo .zip only an hour ago for both stable-diffusion-main and stable-diffusion-webui. I just installed anaconda an hour ago, newest version.
I copied the *.py files from the webui main folder into the stable-diffusion-main/scripts/ folder as instructed by this youtube tutorial (https://www.youtube.com/watch?v=bu2xwx-6JGk), I generate a text-to-image image, click Push to img2img, then I click Generate on that tab, and it creates these errors:
Traceback (most recent call last):
File "C:\Users\adubr\anaconda3\envs\ldm\lib\site-packages\gradio\routes.py", line 247, in run_predict
output = await app.blocks.process_api(
File "C:\Users\adubr\anaconda3\envs\ldm\lib\site-packages\gradio\blocks.py", line 639, in process_api
processed_input = self.preprocess_data(fn_index, raw_input, state)
File "C:\Users\adubr\anaconda3\envs\ldm\lib\site-packages\gradio\blocks.py", line 543, in preprocess_data
processed_input.append(block.preprocess(raw_input[i]))
File "C:\Users\adubr\anaconda3\envs\ldm\lib\site-packages\gradio\components.py", line 1546, in preprocess
x, mask = x["image"], x["mask"]
TypeError: string indices must be integers
Couldn't find job FuncKey(job_id=UUID('3590e32e-4f70-4bb6-9d8b-fb98d532626d'), func=<function img2img at 0x00000238EDF86B80>) in session "595ebd61422b4371b39f188b21d31c88"
Couldn't find job FuncKey(job_id=UUID('3590e32e-4f70-4bb6-9d8b-fb98d532626d'), func=<function img2img at 0x00000238EDF86B80>) in session "595ebd61422b4371b39f188b21d31c88"
Like I said, I JUST downloaded everything an hour ago, so I should have the most current version, right? Thanks!
Version
0.0.1 (Default)
What browsers are you seeing the problem on?
Firefox
Where are you running the webui?
Windows
Custom settings
No response
Relevant log output
Code of Conduct
The text was updated successfully, but these errors were encountered: