-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Lora that breaks the display of other Lora in folders #10
Comments
For the time being, this can be worked around by disabling the |
这是因为在description中出现了“<“和”>“符号,可以使用re函数将description中可能出现的“<“和”>“符号去除,像这样: |
Unfortunately, this creates other issues for me: What if the user wants to keep The author of webui and I disagree on the feature of supporting HTML in the model description, so I'll be trying to work on a solution that will allow 不幸的是,这对我而言带来了其他问题:如果用户想在模型描述中保留 <> 字符怎么办? WebUI的作者和我在支持模型描述中的HTML功能方面存在分歧,因此我将尝试制定一个解决方案,允许 <> 字符而不触发HTML解析器。 翻译提示:此翻译由ChatGPT生成。 |
的确,我没有想到这个情况,或许可以使用转义字符 |
This is not ideal but given the ideal solution isn't going to happen (which is: don't parse the description as HTML), this is the best middle-ground I can come up with. Mind you, it's not fool-proof: if for some reason a model author on civitai puts `<!-- -->` in their model description, it will break, but it it keeps virtually all models from breaking webui otherwise, and allows the user to remove them if they want to restore the description's display within webui's model cards.
I've taken some steps to prevent this from happening in the future, but current files will need to be rescanned with "Replace Old Metadata Formats" enabled. |
Describe Issue
Lora that breaks the display of other Lora in folders
If the problematic Lora is in folder 1, some or all of the Lora in folder 2 will disappear, but if you move the Lora from 2 to 1 or to the main Lora folder, it will reappear.
This problem occurred in the latest update of the Civitai Helper, when it started to create a JSON file for each Lora.
The problem turned out to be in the json file, specifically in the description section.
"description": "Train LoRa is time and resource expensive, you can support my future works here:\u2764\ufe0fBoosty Donation linkAstarotte no omocha!\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\n\n\n\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0\u00a0\u00a0\n\n\n\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\n\n\n\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0\u00a0\u00a0\n\n\n\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0\u00a0\n\n\n\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0\u00a0\n\n\n\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0\u00a0\n\n\n\n\n\nResize, rename to usable format(<title>_), compile to one civit page, and made this page look fine.\n\nIt's same as old one, but much less size with little lost in quality(yes older is seems little better in details, but not so much).\n\n\n\n\n\n",
Here is a link to Lora, all Lora from this page have this problem due to the same description.
https://civitai.com/models/63708?modelVersionId=68326
Screenshot for UI issue
If I remove the descriptions from the problematic Lora json file, all Lora work fine.
The text was updated successfully, but these errors were encountered: