You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to "les amies de groupe", only the Baidu translator does such a fun fact, the Youdao translator perhaps well instead.
So when we want to add the negative prompt, we can use -u, --undesired, and negative prompt: to achieve this.
But when you enable the translate feature, the translator would translate -u into - u, or even ate the -u part, so then the negative prompt part would become ridiculously the prompt itself!
Steps to reproduce
Starts Koishi with NovelAI-Bot plugin
nai une fille petite -u lowres, jpeg artifact, mauvais hand
the actual prompt became little girl, big breasts, bad hair, bad eyes, bad hands (the -u was eaten)
Expected behavior
Being able to use -u and --undesired properly.
Screenshots
No response
Relevant log output
No response
Launcher
Koishi CLI (koishi start)
Backend
Stable Diffusion WebUI (AUTOMATIC1111)
Versions
OS: Ubuntu 22.04
Adapter: Discord
Node version: 16.4.0
Koishi version: Any
Additional context
No response
The text was updated successfully, but these errors were encountered:
A better workaround is to split positive and negative prompt before feeding them to the baka translator.
I am trying to fix this but I don't know how to achieve it. Also there would be 2 http requests if we split them out first.
Don't know if Baidu or Youdao has a rate limit on translate API, but it looks like sending two requests concurrently (with Promise.all()) is still useful here.
So it looks like a prompt parser is still needed here. Does anyone have thoughts?
Describe the bug
According to "les amies de groupe", only the Baidu translator does such a fun fact, the Youdao translator perhaps well instead.
So when we want to add the negative prompt, we can use
-u
,--undesired
, andnegative prompt:
to achieve this.But when you enable the translate feature, the translator would translate
-u
into- u
, or even ate the-u
part, so then the negative prompt part would become ridiculously the prompt itself!Steps to reproduce
nai une fille petite -u lowres, jpeg artifact, mauvais hand
little girl, big breasts, bad hair, bad eyes, bad hands
(the-u
was eaten)Expected behavior
Being able to use
-u
and--undesired
properly.Screenshots
No response
Relevant log output
No response
Launcher
Koishi CLI (koishi start)
Backend
Stable Diffusion WebUI (AUTOMATIC1111)
Versions
Additional context
No response
The text was updated successfully, but these errors were encountered: