Skip to content

The order of chunked values in AdaLayerNorm_Final #1272

Description

@JohnHerry

scale, shift = torch.chunk(emb, 2, dim=1)

The code above, it makes: scale, shift order, This is fine and worked when both training and inference have the same module.
But when I want to load the pretrained F5-TTS module here, with huggingace/diffusers, where:
https://github.com/huggingface/diffusers/blob/20364fe5a2afbddbf2ec5097ec5d483ce0cc689a/src/diffusers/models/normalization.py#L74 that keeps shift first and scale second in both AdaLayerNorm and AdaLayerNorm_Final, it will make bad result.
suggest to keep an identical order.

Activity

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