From d83f64aa3ec61f488252e78c9b5de695f444877d Mon Sep 17 00:00:00 2001 From: kijai <40791699+kijai@users.noreply.github.com> Date: Tue, 8 Oct 2024 14:53:19 +0300 Subject: [PATCH] don't break MZ loader for no reason --- nodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodes.py b/nodes.py index 7af169b..8845fe9 100644 --- a/nodes.py +++ b/nodes.py @@ -870,7 +870,7 @@ class CogVideoSampler: base_path = pipeline["base_path"] assert "fun" not in base_path.lower(), "'Fun' models not supported in 'CogVideoSampler', use the 'CogVideoXFunSampler'" - assert ("I2V" not in pipeline["model_name"] or num_frames == 49 or context_options is not None), "I2V model can only do 49 frames" + assert ("I2V" not in pipeline.get("model_name","") or num_frames == 49 or context_options is not None), "I2V model can only do 49 frames" device = mm.get_torch_device() offload_device = mm.unet_offload_device()