Skip to content

beginner-level question on conditioning #3

Description

@BLT1967

Do you have any advice on where in this code to attach a small (e.g., 4-dimensional or 8-dimensional) conditioning vector? Or if it cannot be done?

Activity

  1. Francesco215 commented on Oct 7, 2025

    @Francesco215
    Owner

    Hi,

    you may change it by modifying this line here to enrich the way conditioning is applied

    conditioning = self.time_conditioning(c_noise)

  2. BLT1967 commented on Oct 8, 2025

    @BLT1967
    Author

    Hi, thanks for responding so promptly! I'm sure this will seem like a totally trivial question, but I'm still finding my way around the code base (and text diffusion in general); can I simply concatenate a conditioning vector? Won't this affect the dimensioning? Or is there a more elegant way of doing this?

    (Also, are you responding from Italy?)

  3. Francesco215 commented on Oct 10, 2025

    @Francesco215
    Owner

    You'll have to change a bit the code. For example you can pass the conditioning vector and then at each layer you project it to the shape you need

    In general I would advice you against doing serious experiments with CDCD because it's not really scalable.

    take a look at this instead https://arxiv.org/pdf/2502.09992

    P.S.
    Yep, I'm in Italy at this moment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions