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
967bfce0
Commit
967bfce0
authored
Mar 26, 2023
by
Jairo Correa
Browse files
Optional RETURN_NAMES to set the output name
parent
48efadec
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
server.py
server.py
+1
-0
web/scripts/app.js
web/scripts/app.js
+4
-2
No files found.
server.py
View file @
967bfce0
...
@@ -152,6 +152,7 @@ class PromptServer():
...
@@ -152,6 +152,7 @@ class PromptServer():
info
=
{}
info
=
{}
info
[
'input'
]
=
obj_class
.
INPUT_TYPES
()
info
[
'input'
]
=
obj_class
.
INPUT_TYPES
()
info
[
'output'
]
=
obj_class
.
RETURN_TYPES
info
[
'output'
]
=
obj_class
.
RETURN_TYPES
info
[
'output_name'
]
=
obj_class
.
RETURN_NAMES
if
hasattr
(
obj_class
,
'RETURN_NAMES'
)
else
info
[
'output'
]
info
[
'name'
]
=
x
#TODO
info
[
'name'
]
=
x
#TODO
info
[
'description'
]
=
''
info
[
'description'
]
=
''
info
[
'category'
]
=
'sd'
info
[
'category'
]
=
'sd'
...
...
web/scripts/app.js
View file @
967bfce0
...
@@ -611,8 +611,10 @@ class ComfyApp {
...
@@ -611,8 +611,10 @@ class ComfyApp {
}
}
}
}
for
(
const
output
of
nodeData
[
"
output
"
])
{
for
(
const
o
in
nodeData
[
"
output
"
])
{
this
.
addOutput
(
output
,
output
);
const
output
=
nodeData
[
"
output
"
][
o
];
const
outputName
=
nodeData
[
"
output_name
"
][
o
]
||
output
;
this
.
addOutput
(
outputName
,
output
);
}
}
const
s
=
this
.
computeSize
();
const
s
=
this
.
computeSize
();
...
...
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