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
48efadec
"...composable_kernel_onnx.git" did not exist on "ad541ad6b9de9b0579d5254f82e9d5b86103d309"
Commit
48efadec
authored
Mar 26, 2023
by
comfyanonymous
Browse files
Style.
parent
223177e1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
nodes.py
nodes.py
+2
-2
server.py
server.py
+1
-1
No files found.
nodes.py
View file @
48efadec
...
@@ -746,12 +746,12 @@ class SaveImage:
...
@@ -746,12 +746,12 @@ class SaveImage:
except
:
except
:
digits
=
0
digits
=
0
return
(
digits
,
prefix
)
return
(
digits
,
prefix
)
def
compute_vars
(
input
):
def
compute_vars
(
input
):
input
=
input
.
replace
(
"%width%"
,
str
(
images
[
0
].
shape
[
1
]))
input
=
input
.
replace
(
"%width%"
,
str
(
images
[
0
].
shape
[
1
]))
input
=
input
.
replace
(
"%height%"
,
str
(
images
[
0
].
shape
[
0
]))
input
=
input
.
replace
(
"%height%"
,
str
(
images
[
0
].
shape
[
0
]))
return
input
return
input
filename_prefix
=
compute_vars
(
filename_prefix
)
filename_prefix
=
compute_vars
(
filename_prefix
)
subfolder
=
os
.
path
.
dirname
(
os
.
path
.
normpath
(
filename_prefix
))
subfolder
=
os
.
path
.
dirname
(
os
.
path
.
normpath
(
filename_prefix
))
...
...
server.py
View file @
48efadec
...
@@ -30,7 +30,7 @@ async def cache_control(request: web.Request, handler):
...
@@ -30,7 +30,7 @@ async def cache_control(request: web.Request, handler):
class
PromptServer
():
class
PromptServer
():
def
__init__
(
self
,
loop
):
def
__init__
(
self
,
loop
):
PromptServer
.
instance
=
self
PromptServer
.
instance
=
self
mimetypes
.
init
();
mimetypes
.
init
();
mimetypes
.
types_map
[
'.js'
]
=
'application/javascript; charset=utf-8'
mimetypes
.
types_map
[
'.js'
]
=
'application/javascript; charset=utf-8'
self
.
prompt_queue
=
None
self
.
prompt_queue
=
None
...
...
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