Describe the bug
Two crash bugs in the guiders:
-
TangentialCFG.is_conditional (in src/diffusers/guiders/tangential_classifier_free_guidance.py) references self._num_outputs_prepared, which does not exist on the class - the actual attribute is self._count_prepared. Any call raises AttributeError.
-
FrequencyDecoupledGuidance.forward (in src/diffusers/guiders/frequency_decoupled_guidance.py) references the undefined name pred_cond_freq in the non-FDG branch - should be pred_cond_pyramid[level]. Any run with that branch raises NameError.
Expected behavior
TangentialCFG.is_conditional should return self._count_prepared == 1
FrequencyDecoupledGuidance non-FDG branch should append pred_cond_pyramid[level]
Fix in PR #14512 (rebase of #13434).
Describe the bug
Two crash bugs in the guiders:
TangentialCFG.is_conditional(insrc/diffusers/guiders/tangential_classifier_free_guidance.py) referencesself._num_outputs_prepared, which does not exist on the class - the actual attribute isself._count_prepared. Any call raisesAttributeError.FrequencyDecoupledGuidance.forward(insrc/diffusers/guiders/frequency_decoupled_guidance.py) references the undefined namepred_cond_freqin the non-FDG branch - should bepred_cond_pyramid[level]. Any run with that branch raisesNameError.Expected behavior
TangentialCFG.is_conditionalshould returnself._count_prepared == 1FrequencyDecoupledGuidancenon-FDG branch should appendpred_cond_pyramid[level]Fix in PR #14512 (rebase of #13434).