Skip to content

Make time_embed_dim of UNet2DModel changeable #10260

@Bichidian

Description

@Bichidian

Is your feature request related to a problem? Please describe.
I want to change the time_embed_dim of UNet2DModel, but it is hard coded as time_embed_dim = block_out_channels[0] * 4 in the __init__ function.

Describe the solution you'd like.
Make time_embedding_dim a parameter of the __init__ function, with the default value of None. Use time_embed_dim = time_embedding_dim or block_out_channels[0] * 4 in the function body.

Describe alternatives you've considered.
N/A.

Additional context.
The same thing in UNet2DConditionModel can be changed via the parameter time_embedding_dim of its __init__ function.

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