Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update pipeline_animatediff.py to add fromsinglefile to pipeline #10753

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

chaowenguo
Copy link
Contributor

@chaowenguo chaowenguo commented Feb 10, 2025

What does this PR do?

add fromsinglefile to pipeline

Fixes # (issue)

Before submitting

Who can review?

@hlky

Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.

@hlky
Copy link
Collaborator

hlky commented Feb 10, 2025

@chaowenguo Can you share example usage

@chaowenguo
Copy link
Contributor Author

i need to use The from_single_file() method

@hlky
Copy link
Collaborator

hlky commented Feb 10, 2025

@chaowenguo

Fill in the checkpoint I can use to test this.

import torch
from diffusers import AnimateDiffPipeline
from huggingface_hub import hf_hub_download

checkpoint = hf_hub_download(repo_id="", filename="")

pipe = AnimateDiffPipeline.from_single_file(checkpoint)

@chaowenguo
Copy link
Contributor Author

chaowenguo commented Feb 11, 2025

@hlky

from diffusers import AnimateDiffPipeline

pipe = AnimateDiffPipeline.from_single_file('https://huggingface.co/chaowenguo/pal/blob/main/chilloutMix-Ni.safetensors')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants