diff --git a/src/diffusers/guiders/tangential_classifier_free_guidance.py b/src/diffusers/guiders/tangential_classifier_free_guidance.py index 497cdc3c463d..bbdcf8d15b29 100644 --- a/src/diffusers/guiders/tangential_classifier_free_guidance.py +++ b/src/diffusers/guiders/tangential_classifier_free_guidance.py @@ -1,4 +1,4 @@ -# Copyright 2026 The HuggingFace Team. All rights reserved. +# Copyright 2026 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -101,7 +101,7 @@ def forward(self, pred_cond: torch.Tensor, pred_uncond: torch.Tensor | None = No @property def is_conditional(self) -> bool: - return self._num_outputs_prepared == 1 + return self._count_prepared == 1 @property def num_conditions(self) -> int: