From e88c6c03ff16c197e7b49b7908f91a67f21ef7b1 Mon Sep 17 00:00:00 2001 From: Jedrzej Kosinski Date: Fri, 10 Jan 2025 23:05:24 -0600 Subject: [PATCH] Fix cond_cat to not try to cast anything that doesn't have a 'to' function --- comfy/samplers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comfy/samplers.py b/comfy/samplers.py index f30640006..98b1932f7 100644 --- a/comfy/samplers.py +++ b/comfy/samplers.py @@ -143,7 +143,7 @@ def cond_cat(c_list, device=None): for k in temp: conds = temp[k] out[k] = conds[0].concat(conds[1:]) - if device is not None: + if device is not None and hasattr(out[k], 'to'): out[k] = out[k].to(device) return out