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
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
Hide 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 = """
...
@@ -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,
...
...
webshit/index.html
View file @
a37b41e8
...
@@ -350,10 +350,12 @@ function graphToPrompt() {
...
@@ -350,10 +350,12 @@ function graphToPrompt() {
}
}
for
(
let
y
in
n
.
widgets
)
{
for
(
let
y
in
n
.
widgets
)
{
if
(
n
.
widgets
[
y
].
dynamic_prompt
&&
n
.
widgets
[
y
].
dynamic_prompt
===
true
)
{
if
(
!
Object
.
hasOwn
(
n
.
widgets
[
y
],
'
to_randomize
'
))
{
//don't include "Random seed after every gen" in prompt.
input_
[
n
.
widgets
[
y
].
name
]
=
n
.
widgets
[
y
].
value
.
replace
(
"
\\
{
"
,
"
{
"
).
replace
(
"
\\
}
"
,
"
}
"
);
if
(
n
.
widgets
[
y
].
dynamic_prompt
&&
n
.
widgets
[
y
].
dynamic_prompt
===
true
)
{
}
else
{
input_
[
n
.
widgets
[
y
].
name
]
=
n
.
widgets
[
y
].
value
.
replace
(
"
\\
{
"
,
"
{
"
).
replace
(
"
\\
}
"
,
"
}
"
);
input_
[
n
.
widgets
[
y
].
name
]
=
n
.
widgets
[
y
].
value
;
}
else
{
input_
[
n
.
widgets
[
y
].
name
]
=
n
.
widgets
[
y
].
value
;
}
}
}
}
}
for
(
let
y
in
n
.
inputs
)
{
for
(
let
y
in
n
.
inputs
)
{
...
...
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