mirror of
https://git.datalinker.icu/kijai/ComfyUI-KJNodes.git
synced 2025-12-10 05:15:05 +08:00
Ensure colormatch is on cpu
This commit is contained in:
parent
a77d73ca8a
commit
1448402b83
4
nodes.py
4
nodes.py
@ -1152,8 +1152,8 @@ class ColorMatch:
|
|||||||
images_target = image_target.squeeze()
|
images_target = image_target.squeeze()
|
||||||
images_ref = image_ref.squeeze()
|
images_ref = image_ref.squeeze()
|
||||||
|
|
||||||
image_ref_np = images_ref.numpy()
|
image_ref_np = images_ref.cpu().numpy()
|
||||||
images_target_np = images_target.numpy()
|
images_target_np = images_target.cpu().numpy()
|
||||||
|
|
||||||
if image_ref.size(0) > 1 and image_ref.size(0) != batch_size:
|
if image_ref.size(0) > 1 and image_ref.size(0) != batch_size:
|
||||||
raise ValueError("ColorMatch: Use either single reference image or a matching batch of reference images.")
|
raise ValueError("ColorMatch: Use either single reference image or a matching batch of reference images.")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user