swift-coreml-diffusers icon indicating copy to clipboard operation
swift-coreml-diffusers copied to clipboard

Warning when prompts needs to be truncated

Open jgranie opened this issue 2 years ago • 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.

jgranie avatar Jun 19 '23 16:06 jgranie

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?

pcuenca avatar Jun 19 '23 17:06 pcuenca

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

ghost avatar Jun 19 '23 18:06 ghost

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 avatar Jun 19 '23 18:06 jgranie

@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?

ghost avatar Aug 03 '23 08:08 ghost