Interrogator doesnt work[Bug]:
Is there an existing issue for this?
- [X] I have searched the existing issues and checked the recent builds/commits
What happened?
doesnt work
Steps to reproduce the problem
- Go to ....
- Press ....
- ... ....
What should have happened?
interrogator should work
Commit where the problem happens
....
What platforms do you use to access UI ?
No response
What browsers do you use to access the UI ?
No response
Command Line Arguments
.
Additional information, context and logs
.
please help-i really need this function for my worfklow.
I have opened a PR to fix this: #4381 Meanwhile you can modify the files yourself following this https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/4381/files
Nice, perhaps you can also add code so that the web ui doesnt shit itself when the user presses interrogate while having the inpaint tab selected (and an image loaded in the inpaint tab image component and not the im2img tab selected)
Inside ui.py there is this code
img2img_interrogate.click(
fn=interrogate,
inputs=[init_img],
outputs=[img2img_prompt],
)
the input should be something along line this i think?
img2img_interrogate.click(
fn=interrogate,
# pseudo code
inputs=[init_img img2img2 tab is selected else init_img_with_mask],
outputs=[img2img_prompt],
)
I have opened a PR to fix this: #4381 Meanwhile you can modify the files yourself following this https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/4381/files
Nice, perhaps you can also add code so that the web ui doesnt shit itself when the user presses interrogate while having the inpaint tab selected (and an image loaded in the inpaint tab image component and no the im2img tab selected)
@Sadulisten Hi, sorry but I deleted this earlier comment because I realised this issue is not entirely fixed by my PR. It has to do with his source image being empty. I cannot fix that,
As for your issue with inpainting, I'm sorry but I have very limited knowledge of this code base, and have never used inpainting before, so I'm afraid I don't have the knowledge to fix the issue.
Alright fair enough, perhaps someone else comes by and see what I wrote and can add proper safeguards to prevent this stuff from happening
Perhaps just a check if the passes PIL image object is null before trying to interrogate on it should work good enough, but that still leaves the issue i highlighted unresolved