koishijs / novelai-bot

Generate images by NovelAI | 基于 NovelAI 的画图机器人
https://bot.novelai.dev
MIT License
2.49k stars 204 forks source link

Bug: novelai plugin translate prompt into lower case makes lora not usable #178

Closed MaikoTan closed 1 year ago

MaikoTan commented 1 year ago

Describe the bug

The novelai plugin translate the whole prompt into lower case, but some lora network's name contains upper case letters, then the sd-webui backend just reports lora xxx not found.

Also stripped out underline?

Steps to reproduce

  1. install the koishi novelai plugin 1.17.2
  2. type nai girl, <lora:GenshinImpactHutao_V1:1>
  3. sd-webui error: lora genshinimpacthutao v1 not found
  4. and the returned image was totally no relationship with Hu Tao-chan.

Expected behavior

Able to use lora properly.

Screenshots

No response

Relevant log output

No response

Launcher

Koishi CLI (koishi start)

Backend

Stable Diffusion WebUI (AUTOMATIC1111)

Versions

Additional context

No response

2364918101 commented 1 year ago

解决了吗,我也是这样的

shigma commented 1 year ago

修了。