Skip to content

Feature Request: add SDXL support to animatediff pipeline #6158

Closed
@madriss

Description

@madriss

Is your feature request related to a problem? Please describe.
Currently the AnimateDiff pipeline only supports SD 1.4 and SD 1.5. AnimateDiff with SDXL seems like a great addition as the quality is greater.

Describe the solution you'd like.
Currently the MotionAdapter cannot load the SDXL motion module :

The following results in an error :

adapter = MotionAdapter.from_pretrained("vladmandic/animatediff-sdxl", torch_dtype=torch.float16)
ValueError: Cannot load <class 'diffusers.models.unet_motion_model.MotionAdapter'> from vladmandic/animatediff-sdxl because the following keys are missing: 
 up_blocks.1.motion_modules.0.norm.bias, down_blocks.2.motion_modules.0.proj_out.bias, up_blocks.1.motion_modules.1.transformer_blocks.0.ff.net.2.bias, down_blocks.3.motion_modules.1.transformer_blocks.0.ff.net.0.proj.weight, 
...

Describe alternatives you've considered.
An alternative solution would be to take inspirtaion from official implementation at https://github.com/guoyww/AnimateDiff
or from https://github.com/s9roll7/animatediff-cli-prompt-travel/tree/main/src/animatediff

Additional context.
Official SDXL motion module : https://huggingface.co/guoyww/animatediff/blob/main/mm_sdxl_v10_beta.ckpt

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