stable-diffusion-webui icon indicating copy to clipboard operation
stable-diffusion-webui copied to clipboard

Interrogator doesnt work[Bug]:

Open demosch opened this issue 3 years ago • 5 comments

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

  1. Go to ....
  2. Press ....
  3. ... ....

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

.

demosch avatar Nov 06 '22 09:11 demosch

Bildschirmfoto 2022-11-06 um 10 48 40

demosch avatar Nov 06 '22 09:11 demosch

please help-i really need this function for my worfklow.

demosch avatar Nov 06 '22 10:11 demosch

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],
            )

TetteDev avatar Nov 06 '22 10:11 TetteDev

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.

aliencaocao avatar Nov 06 '22 10:11 aliencaocao

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

TetteDev avatar Nov 06 '22 10:11 TetteDev