From 1448402b83e213d967ae8cb5f3dba8d4c2f9943b Mon Sep 17 00:00:00 2001 From: Kijai <40791699+kijai@users.noreply.github.com> Date: Wed, 20 Dec 2023 15:47:45 +0200 Subject: [PATCH] Ensure colormatch is on cpu --- nodes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nodes.py b/nodes.py index 715febd..26a825a 100644 --- a/nodes.py +++ b/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.")