NON906 / sd-webui-chatgpt

This is a repository for conversations using OpenAI API (compatible with ChatGPT) or llama.cpp in Stable Diffusion web UI.
MIT License
41 stars 7 forks source link

About prompt generation #10

Open onexzero opened 9 months ago

onexzero commented 9 months ago

When adding the sd_lora shortcut interface in WEBUI, the prompt creation is strange.
ui

my txt2img setting "prompt": "4k.best quality, ultra high res, (realism by Gustave Courbet:0.7), photo-realistic,", "negative_prompt": "deepnegative,deformity,blurry,paintings, sketches, (low quality, worst quality, normal quality:1.5), ((monochrome)), ((grayscale)),",

Chat message: 1girl

Generated prompt

4k.best quality, ultra high res, (realism by Gustave Courbet:0.7), photo-realistic,<lora:more_details:0.3>, 1girl<lora:prettymg2:1.0><lora:prettymg2:1.0>

The lora tag appears twice, as shown above. Additionally, the lora tag is displayed without a separator before it.

NON906 commented 9 months ago
onexzero commented 9 months ago

I'm using latest version.

NON906 commented 9 months ago

This should also be the latest version, but it did not occur. I'll try to fix it if the same thing happens.