Skip to content

Commit e59ecd0

Browse files
committed
修复BUG v0.0.50
修复BUG v0.0.50
1 parent 7cb8e01 commit e59ecd0

File tree

7 files changed

+12
-14
lines changed

7 files changed

+12
-14
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
> 最新更新:2025-04-28
3232
33-
> 0.0.49 公测版本介绍 如果你要使用本插件请务必进我们的官方 QQ 群(1018231382)!
33+
> 0.0.50 公测版本介绍 如果你要使用本插件请务必进我们的官方 QQ 群(1018231382)!
3434
>
3535
> 1. 新增功能:Lora详细界面内可以自定义自己的字段
3636
>

README_EN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Due to limited personal time, the frequency of updating plug-ins will not be ver
2626

2727
> Last updated: 2025-04-28
2828
29-
> 0.0.49 Public Beta Version Introduction: If you want to use this plugin, please be sure to join our official QQ group (1018231382)!
29+
> 0.0.50 Public Beta Version Introduction: If you want to use this plugin, please be sure to join our official QQ group (1018231382)!
3030
>
3131
> 1. New feature: Within the Lora detailed interface, you can customize your own fields
3232
>

__init__.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,9 @@ def load_lora_ing(self, positive="",lora_str="",temp_str="",temp_lora_str="", op
142142
print("模型权重strength_model:",strength_model,"文本权重strength_clip:",strength_clip)
143143

144144
# 安全处理文件名中的特殊字符
145-
lora_name = str_lora_item["lora"].encode('unicode_escape').decode('utf-8') # 处理unicode字符
146-
lora_name = lora_name.replace('\\', '/').replace('"', '\\"') # 统一路径和转义引号
147-
lora_name = ''.join(c for c in lora_name if c.isprintable()) # 移除不可打印字符
148-
lora_path = folder_paths.get_full_path("loras", lora_name)
145+
lora_path = folder_paths.get_full_path("loras", str_lora_item["lora"])
146+
if lora_path == None:
147+
raise ValueError(f"无法找到Lora文件: {str_lora_item["lora"]}")
149148
print("加载Lora lora_path:",lora_path)
150149
lora = None
151150
if self.loaded_loraA is not None:
@@ -227,10 +226,9 @@ def load_lora_ing(self, clip=None, model=None, lora_str="", temp_lora_str=""):
227226
print("模型权重strength_model:",strength_model,"文本权重strength_clip:",strength_clip)
228227

229228
# 安全处理文件名中的特殊字符
230-
lora_name = str_lora_item["lora"].encode('unicode_escape').decode('utf-8') # 处理unicode字符
231-
lora_name = lora_name.replace('\\', '/').replace('"', '\\"') # 统一路径和转义引号
232-
lora_name = ''.join(c for c in lora_name if c.isprintable()) # 移除不可打印字符
233-
lora_path = folder_paths.get_full_path("loras", lora_name)
229+
lora_path = folder_paths.get_full_path("loras", str_lora_item["lora"])
230+
if lora_path == None:
231+
raise ValueError(f"无法找到Lora文件: {str_lora_item["lora"]}")
234232
print("加载Lora lora_path:",lora_path)
235233
lora = None
236234
if self.loaded_loraA is not None:

dist/javascript/main.entry.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/javascript/main.entry.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[project]
22
name = "weilin-comfyui-tools"
33
description = "让你在 ComfyUI 中快捷的使用提示词工具 Quickly use the prompt word tool in ComfyUI"
4-
version = "0.0.49"
4+
version = "0.0.50"
55
license = {file = "LICENSE"}
66
dependencies = []
77

src/src/utils/version.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const version = "v0.0.49";
1+
export const version = "v0.0.50";

0 commit comments

Comments
 (0)