fix:Error in the loader when the prompt word was component

This commit is contained in:
yolain
2024-01-19 11:07:25 +08:00
parent f2036595f9
commit e484b50557
3 changed files with 6 additions and 4 deletions
+1
View File
@@ -31,6 +31,7 @@ After installing the node package, the UI interface will be automatically switch
**v1.0.3(2024-01-19)**
- Fixed the error message in the loader when the prompt word was component
- Added `easy stylesSelector`
- Added **scale_soft_weights** in `easy controlnetLoader` and `easy controlnetLoaderADV`
- Added the queue progress bar setting item, which is not enabled by default
+1
View File
@@ -39,6 +39,7 @@
**v1.0.3(2024-01-19)**
- 修复加载器中提示词为组件时报错
- 增加 `easy stylesSelector` 风格化提示词选择器
- `easy controlnetLoader` 和 `easy controlnetLoaderADV` 增加参数 **scale_soft_weights**
- 增加队列进度条设置项,默认为未启用状态
+4 -4
View File
@@ -1903,12 +1903,12 @@ class fullLoader:
# 判断是否连接 styles selector
is_positive_linked_styles_selector = False
inputs_positive_values = prompt[my_unique_id]['inputs']['positive'] if "positive" in prompt[my_unique_id]['inputs'] else None
if inputs_positive_values != 'undefined' and inputs_positive_values[0]:
is_positive_linked_styles_selector = True if prompt[inputs_positive_values[0]]['class_type'] == 'easy stylesSelector' else False
if type(inputs_positive_values) == list and inputs_positive_values != 'undefined' and inputs_positive_values[0]:
is_positive_linked_styles_selector = True if prompt[inputs_positive_values[0]] and prompt[inputs_positive_values[0]]['class_type'] == 'easy stylesSelector' else False
is_negative_linked_styles_selector = False
inputs_negative_values = prompt[my_unique_id]['inputs']['negative'] if "negative" in prompt[my_unique_id]['inputs'] else None
if inputs_negative_values != 'undefined' and inputs_negative_values[0]:
is_negative_linked_styles_selector = True if prompt[inputs_negative_values[0]]['class_type'] == 'easy stylesSelector' else False
if type(inputs_negative_values) == list and inputs_negative_values != 'undefined' and inputs_negative_values[0]:
is_negative_linked_styles_selector = True if prompt[inputs_negative_values[0]] and prompt[inputs_negative_values[0]]['class_type'] == 'easy stylesSelector' else False
log_node_warn("正在处理提示词...")
positive_seed = find_wildcards_seed(positive, prompt)