Skip to content

Bug: AttributeError in TangentialCFG.is_conditional and NameError in FrequencyDecoupledGuidance.forward #14643

Description

@Ricardo-M-L

Describe the bug

Two crash bugs in the guiders:

  1. 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.

  2. 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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions