update readme
This commit is contained in:
@@ -80,6 +80,9 @@ When this error has occurred, please check the network environment.
|
||||
## Update
|
||||
<font size="4">**If the dependency package error after updating, please reinstall the relevant dependency packages. </font><br />
|
||||
|
||||
* [BooleanOperatorV2](#BooleanOperatorV2), [NumberCalculatorV2](#NumberCalculatorV2), [Integer](#Integer), [Float](#Float), [Boolean](#Boolean) nodes add string output to output the value as a string for use with [SwitchCase](#SwitchCase).
|
||||
* Commit [SwitchCase](#SwitchCase) node, Switches the output based on the matching string. Can be used for any type of data switching.
|
||||
* Commit [String](#String) node, Used to output a string. It is the TextBox simplified node.
|
||||
* Commit [If](#If) node,Switches output based on Boolean conditional input. Can be used for any type of data switching.
|
||||
* Commit [StringCondition](#StringCondition) node, Determines whether the text contains or does not contain a substring.
|
||||
* Commit [NumberCalculatorV2](#NumberCalculatorV2) node,Add the nth root operation. Commit [BooleanOperatorV2](#BooleanOperatorV2) node, Increasing greater/less than, greater/less then or equal logical judgment. The two nodes can access numeric inputs and can input numeric values within the node. Note: Numeric input takes precedence. Values in nodes will not be valid when there is input.
|
||||
@@ -1112,11 +1115,14 @@ Used to provide assistance for workflow debugging. When running, the properties
|
||||
This node allows any type of input.
|
||||
|
||||
|
||||
|
||||
### <a id="table1">TextBox</a>
|
||||

|
||||
Output a string.
|
||||
|
||||
### <a id="table1">String</a>
|
||||

|
||||
Output a string. same as TextBox.
|
||||
|
||||
### <a id="table1">Integer</a>
|
||||

|
||||
Output a integer value.
|
||||
@@ -1174,6 +1180,22 @@ Node Options:
|
||||
* when_True: This item is output when the condition is True.
|
||||
* when_False: This item is output when the condition is False.
|
||||
|
||||
### <a id="table1">SwiitchCase</a>
|
||||

|
||||
Switches the output based on the matching string. It can be used for any type of data switching, including but not limited to numeric values, strings, pictures, masks, models, latent, pipe pipelines, etc. Supports up to 3 sets of case switches.
|
||||
Compare case to ```switch_condition``` , if the same, output the corresponding input. If there are the same cases, the output is prioritized in order. If there is no matching case, the default input is output.
|
||||
Note that the string is case sensitive and Chinese and English full-width and half-width.
|
||||
|
||||
Node Options:
|
||||

|
||||
* input_default: Input entry for default output. This input is required.
|
||||
* input_1: Input entry used to match ```case_1```. This input is optional.
|
||||
* input_2: Input entry used to match ```case_2```. This input is optional.
|
||||
* input_3: Input entry used to match ```case_3```. This input is optional.
|
||||
* switch_condition: String used to judge with case.
|
||||
* case_1: case_1 string.
|
||||
* case_2: case_2 string.
|
||||
* case_3: case_3 string.
|
||||
|
||||
|
||||
### <a id="table1">PurgeVRAM</a>
|
||||
|
||||
+25
-1
@@ -80,6 +80,9 @@ git clone https://github.com/chflame163/ComfyUI_LayerStyle.git
|
||||
## 更新说明
|
||||
<font size="4">**如果本插件更新后出现依赖包错误,请重新安装相关依赖包。
|
||||
|
||||
* [BooleanOperatorV2](#BooleanOperatorV2), [NumberCalculatorV2](#NumberCalculatorV2), [Integer](#Integer), [Float](#Float), [Boolean](#Boolean)节点增加string输出,将值输出为字符串,以配合[SwitchCase](#SwitchCase)使用。
|
||||
* 添加 [SwitchCase](#SwitchCase) 节点, 根据匹配字符串切换输出。可用于任意类型的数据切换。
|
||||
* 添加 [String](#String) 节点, 用于输出字符串。这是TextBox简化版节点。
|
||||
* 添加 [If](#If) 节点,根据布尔值条件输入切换输出。可用于任意类型的数据切换。
|
||||
* 添加 [StringCondition](#StringCondition) 节点, 可判断文本中是否包含或不包含子字符串。
|
||||
* 添加 [NumberCalculatorV2](#NumberCalculatorV2) 节点,增加开方运算。添加 [BooleanOperatorV2](#BooleanOperatorV2) 节点, 增加大小于、大小于等于逻辑判断。这两个节点可接入数值输入也可在节点内输入数值。注意:数值输入更优先,当有输入时节点内数值将无效。
|
||||
@@ -1103,7 +1106,11 @@ cropped_mask: 裁切后的遮罩。
|
||||
|
||||
### <a id="table1">TextBox</a>
|
||||

|
||||
输出一段字符串。
|
||||
输出字符串。
|
||||
|
||||
### <a id="table1">String</a>
|
||||

|
||||
输出字符串。与TextBox作用相同。
|
||||
|
||||
### <a id="table1">Integer</a>
|
||||

|
||||
@@ -1164,6 +1171,23 @@ BooleanOperator的升级版,增加了节点内数值输入,增加了大于
|
||||
* when_False: 当条件为False时,将输出此项。
|
||||
|
||||
|
||||
### <a id="table1">SwiitchCase</a>
|
||||

|
||||
根据匹配字符串切换输出。可用于任意类型的数据切换,包括且不限于数值、字符串、图片、遮罩、模型、latent、pipe管线等。最多支持3组case切换。
|
||||
将case与```switch_condition```进行比较,如果相同,则输出对应的输入项。如果有相同的case则按顺序优先输出。如果没有匹配的case,则输出默认的输入项。请注意,字符串区分大小写和中英文全角半角。
|
||||
|
||||
节点选项说明:
|
||||

|
||||
* input_default: 用于默认输出的输入项。此输入是必选项。
|
||||
* input_1: 用于匹配```case_1```的输入项。此输入是可选项。
|
||||
* input_2: 用于匹配```case_2```的输入项。此输入是可选项。
|
||||
* input_3: 用于匹配```case_3```的输入项。此输入是可选项。
|
||||
* switch_condition: 用于与case判断的字符串。
|
||||
* case_1: case_1字符串。
|
||||
* case_2: case_2字符串。
|
||||
* case_3: case_3字符串。
|
||||
|
||||
|
||||
### <a id="table1">PurgeVRAM</a>
|
||||

|
||||
清理GPU显存。可以接入任意类型的输入,当执行到这个节点时将清理VRAM以及RAM中的垃圾对象。通常放置在推理任务完成的节点之后,例如VAE Decode节点。
|
||||
|
||||
Reference in New Issue
Block a user