From c11a0b54cbee5acb2a35a3859192cc640d1680c3 Mon Sep 17 00:00:00 2001 From: Mr-Neutr0n <64578610+Mr-Neutr0n@users.noreply.github.com> Date: Wed, 11 Feb 2026 23:51:19 +0530 Subject: [PATCH] fix: define undefined variable cbs in conditioning warning --- cldm/ddim_hacked.py | 2 +- ldm/models/diffusion/ddim.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cldm/ddim_hacked.py b/cldm/ddim_hacked.py index 25b1bc9472..ca460c3099 100644 --- a/cldm/ddim_hacked.py +++ b/cldm/ddim_hacked.py @@ -88,7 +88,7 @@ def sample(self, elif isinstance(conditioning, list): for ctmp in conditioning: if ctmp.shape[0] != batch_size: - print(f"Warning: Got {cbs} conditionings but batch-size is {batch_size}") + print(f"Warning: Got {ctmp.shape[0]} conditionings but batch-size is {batch_size}") else: if conditioning.shape[0] != batch_size: diff --git a/ldm/models/diffusion/ddim.py b/ldm/models/diffusion/ddim.py index 27ead0ea91..454c22929d 100644 --- a/ldm/models/diffusion/ddim.py +++ b/ldm/models/diffusion/ddim.py @@ -88,7 +88,7 @@ def sample(self, elif isinstance(conditioning, list): for ctmp in conditioning: if ctmp.shape[0] != batch_size: - print(f"Warning: Got {cbs} conditionings but batch-size is {batch_size}") + print(f"Warning: Got {ctmp.shape[0]} conditionings but batch-size is {batch_size}") else: if conditioning.shape[0] != batch_size: