mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-01-25 15:55:18 +00:00
Put image upscaling nodes in image/upscaling category.
This commit is contained in:
parent
e33dc2b33b
commit
c8f1acc4eb
@ -35,7 +35,7 @@ class ImageUpscaleWithModel:
|
|||||||
RETURN_TYPES = ("IMAGE",)
|
RETURN_TYPES = ("IMAGE",)
|
||||||
FUNCTION = "upscale"
|
FUNCTION = "upscale"
|
||||||
|
|
||||||
CATEGORY = "image"
|
CATEGORY = "image/upscaling"
|
||||||
|
|
||||||
def upscale(self, upscale_model, image):
|
def upscale(self, upscale_model, image):
|
||||||
device = comfy.model_management.get_torch_device()
|
device = comfy.model_management.get_torch_device()
|
||||||
|
2
nodes.py
2
nodes.py
@ -907,7 +907,7 @@ class ImageScale:
|
|||||||
RETURN_TYPES = ("IMAGE",)
|
RETURN_TYPES = ("IMAGE",)
|
||||||
FUNCTION = "upscale"
|
FUNCTION = "upscale"
|
||||||
|
|
||||||
CATEGORY = "image"
|
CATEGORY = "image/upscaling"
|
||||||
|
|
||||||
def upscale(self, image, upscale_method, width, height, crop):
|
def upscale(self, image, upscale_method, width, height, crop):
|
||||||
samples = image.movedim(-1,1)
|
samples = image.movedim(-1,1)
|
||||||
|
Loading…
Reference in New Issue
Block a user