mirror of
https://git.datalinker.icu/kijai/ComfyUI-KJNodes.git
synced 2025-12-09 21:04:41 +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_ref = image_ref.squeeze()
|
||||
|
||||
image_ref_np = images_ref.numpy()
|
||||
images_target_np = images_target.numpy()
|
||||
image_ref_np = images_ref.cpu().numpy()
|
||||
images_target_np = images_target.cpu().numpy()
|
||||
|
||||
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.")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user