mirror of
https://git.datalinker.icu/kijai/ComfyUI-KJNodes.git
synced 2026-05-25 21:42:20 +08:00
Revert this for now as old workflows get validation issues...
This commit is contained in:
parent
9954d6b599
commit
3fcd22f2fe
@ -2476,7 +2476,7 @@ class ImageResizeKJv2:
|
|||||||
"optional" : {
|
"optional" : {
|
||||||
"mask": ("MASK",),
|
"mask": ("MASK",),
|
||||||
"device": (["cpu", "gpu"],),
|
"device": (["cpu", "gpu"],),
|
||||||
"per_batch": ("INT", { "default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 1, "tooltip": "Process images in sub-batches to reduce memory usage. 0 disables sub-batching."}),
|
#"per_batch": ("INT", { "default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 1, "tooltip": "Process images in sub-batches to reduce memory usage. 0 disables sub-batching."}),
|
||||||
},
|
},
|
||||||
"hidden": {
|
"hidden": {
|
||||||
"unique_id": "UNIQUE_ID",
|
"unique_id": "UNIQUE_ID",
|
||||||
@ -2495,7 +2495,7 @@ Keep proportions keeps the aspect ratio of the image, by
|
|||||||
highest dimension.
|
highest dimension.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def resize(self, image, width, height, keep_proportion, upscale_method, divisible_by, pad_color, crop_position, unique_id, device="cpu", mask=None, per_batch=0):
|
def resize(self, image, width, height, keep_proportion, upscale_method, divisible_by, pad_color, crop_position, unique_id, device="cpu", mask=None, per_batch=64):
|
||||||
B, H, W, C = image.shape
|
B, H, W, C = image.shape
|
||||||
|
|
||||||
if device == "gpu":
|
if device == "gpu":
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user