mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-01-11 02:15:17 +00:00
Don't send the "Random seed after every gen" field in the prompt.
This commit is contained in:
parent
8c692c91d2
commit
a37b41e84c
@ -30,7 +30,6 @@ prompt_text = """
|
|||||||
"6",
|
"6",
|
||||||
0
|
0
|
||||||
],
|
],
|
||||||
"Random seed after every gen": true,
|
|
||||||
"sampler_name": "sample_euler",
|
"sampler_name": "sample_euler",
|
||||||
"scheduler": "normal",
|
"scheduler": "normal",
|
||||||
"seed": 8566257,
|
"seed": 8566257,
|
||||||
|
@ -350,12 +350,14 @@ function graphToPrompt() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (let y in n.widgets) {
|
for (let y in n.widgets) {
|
||||||
|
if (!Object.hasOwn(n.widgets[y], 'to_randomize')) { //don't include "Random seed after every gen" in prompt.
|
||||||
if (n.widgets[y].dynamic_prompt && n.widgets[y].dynamic_prompt === true) {
|
if (n.widgets[y].dynamic_prompt && n.widgets[y].dynamic_prompt === true) {
|
||||||
input_[n.widgets[y].name] = n.widgets[y].value.replace("\\{", "{").replace("\\}", "}");
|
input_[n.widgets[y].name] = n.widgets[y].value.replace("\\{", "{").replace("\\}", "}");
|
||||||
} else {
|
} else {
|
||||||
input_[n.widgets[y].name] = n.widgets[y].value;
|
input_[n.widgets[y].name] = n.widgets[y].value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
for (let y in n.inputs) {
|
for (let y in n.inputs) {
|
||||||
let parent_node = n.getInputNode(y);
|
let parent_node = n.getInputNode(y);
|
||||||
if (parent_node) {
|
if (parent_node) {
|
||||||
|
Loading…
Reference in New Issue
Block a user