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
c8f1acc4
Commit
c8f1acc4
authored
Mar 11, 2023
by
comfyanonymous
Browse files
Put image upscaling nodes in image/upscaling category.
parent
e33dc2b3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
comfy_extras/nodes_upscale_model.py
comfy_extras/nodes_upscale_model.py
+1
-1
nodes.py
nodes.py
+1
-1
No files found.
comfy_extras/nodes_upscale_model.py
View file @
c8f1acc4
...
...
@@ -35,7 +35,7 @@ class ImageUpscaleWithModel:
RETURN_TYPES
=
(
"IMAGE"
,)
FUNCTION
=
"upscale"
CATEGORY
=
"image"
CATEGORY
=
"image
/upscaling
"
def
upscale
(
self
,
upscale_model
,
image
):
device
=
comfy
.
model_management
.
get_torch_device
()
...
...
nodes.py
View file @
c8f1acc4
...
...
@@ -907,7 +907,7 @@ class ImageScale:
RETURN_TYPES
=
(
"IMAGE"
,)
FUNCTION
=
"upscale"
CATEGORY
=
"image"
CATEGORY
=
"image
/upscaling
"
def
upscale
(
self
,
image
,
upscale_method
,
width
,
height
,
crop
):
samples
=
image
.
movedim
(
-
1
,
1
)
...
...
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