Skip to content

missing self.blocks adaLN-Zero #14

@XIONGPEILIN

Description

@XIONGPEILIN
 332 + # Zero-out adaLN modulation layers in DDT blocks (adaLN-Zero):
  333 + for block in self.blocks:
  334 +     nn.init.constant_(block.adaLN_modulation[-1].weight, 0)
  335 +     nn.init.constant_(block.adaLN_modulation[-1].bias, 0)

I noticed that unlike the standard DiT architecture, which uses zero-initialization in every transformer block (e.g., via the adaLN-Zero mechanism), your implementation only applies zero-initialization to the final projection head. Could you share the reasoning behind this design choice?

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