huggingface/swift-coreml-diffusers

Warning when prompts needs to be truncated

jgranie opened this issue · 4 comments

Hi,
I understood the previous issue I've posted only when I tried to generate image with command line ml-stable-diffusion. The prompts are truncated and images generated are consistent with what I get in A1111.
Could it be possible to display a warning to avoid any confusion ?
Thanks.

Hi @jgranie! Sorry, I'm not sure I follow. Would you like a warning when the prompt is too long and has to be truncated?

I'm guessing either something like a twitter style character count down or changing text color to warn of impending or active truncation?

Yes, anything visual that tells us that the prompt will be (or bas been) truncated (before or after generation). Even a message popup can do the job . Thanks for your reply.

@jgranie could you test the PromptTextField addition (which displays a token count as you enter your prompts) to verify it fixes your use case? If yes could you mark this request resolved?