Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
a37b41e8
"vscode:/vscode.git/clone" did not exist on "f5f701388bcc5e026f7bb9bf1c9c896c39fca47e"
Commit
a37b41e8
authored
Feb 22, 2023
by
comfyanonymous
Browse files
Don't send the "Random seed after every gen" field in the prompt.
parent
8c692c91
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
script_examples/basic_api_example.py
script_examples/basic_api_example.py
+0
-1
webshit/index.html
webshit/index.html
+6
-4
No files found.
script_examples/basic_api_example.py
View file @
a37b41e8
...
...
@@ -30,7 +30,6 @@ prompt_text = """
"6",
0
],
"Random seed after every gen": true,
"sampler_name": "sample_euler",
"scheduler": "normal",
"seed": 8566257,
...
...
webshit/index.html
View file @
a37b41e8
...
...
@@ -350,12 +350,14 @@ function graphToPrompt() {
}
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
)
{
input_
[
n
.
widgets
[
y
].
name
]
=
n
.
widgets
[
y
].
value
.
replace
(
"
\\
{
"
,
"
{
"
).
replace
(
"
\\
}
"
,
"
}
"
);
}
else
{
input_
[
n
.
widgets
[
y
].
name
]
=
n
.
widgets
[
y
].
value
;
}
}
}
for
(
let
y
in
n
.
inputs
)
{
let
parent_node
=
n
.
getInputNode
(
y
);
if
(
parent_node
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment