lllyasviel / stable-diffusion-webui-forge

GNU Affero General Public License v3.0
8.59k stars 849 forks source link

Slow prompt changing while image is being generated #2339

Open AnabelleKM opened 1 week ago

AnabelleKM commented 1 week ago

When changing the prompt in Txt2img while an image is being generated, it slows down the process of generating the image, This does not apply when using Img2img, here it works without interrupting the process.

c4801725870 commented 1 week ago

I noticed this on rtx 3080, but on 3090 it has less effect. 3080 generation time would double if the prompt adjusted

SvenErik1968 commented 6 days ago

I see that when I edit a prompt while generating, the prompt counter tries, without success, to re-calculate the new number of tokens, and only manage to complete that after the generation has completed.

Possibly unrelated, but I also notice in the page inspection (Chrome) there is a page error:

Content Security Policy of your site blocks the use of 'eval' in JavaScript`

The Content Security Policy (CSP) prevents the evaluation of arbitrary strings as JavaScript to make it more difficult for an attacker to inject unathorized code on your site. To solve this issue, avoid using eval(), new Function(), setTimeout([string], ...) and setInterval([string], ...) for evaluating strings. If you absolutely must: you can enable string evaluation by adding unsafe-eval as an allowed source in a script-src directive. ⚠️ Allowing string evaluation comes at the risk of inline script injection.

AFFECTED RESOURCES 1 directive Source location Directive Status script-src blocked