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_stable_diffusion_instruct_pix2pix.py to use pytorch_xla and from single safetensor. #10355

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

chaowenguo
Copy link

@chaowenguo chaowenguo commented Dec 23, 2024

What does this PR do?

Fixes # (issue)

Before submitting

Who can review?

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 hlky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the contribution @chaowenguo! I've added instruct-pix2pix to single_file_utils to complete from_single_file support.

Example

from diffusers import StableDiffusionInstructPix2PixPipeline

pipe = StableDiffusionInstructPix2PixPipeline.from_single_file("https://huggingface.co/timbrooks/instruct-pix2pix/blob/main/instruct-pix2pix-00-22000.safetensors")

@hlky
Copy link
Collaborator

hlky commented Dec 23, 2024

cc @yiyixuxu We've had a few PRs for pytorch_xla support recently, should we create an issue to track pipelines missing pytorch_xla support and open it to the community? Edit: Created #10357

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@chaowenguo
Copy link
Author

@hlky could you actually merge the source?

@hlky hlky requested review from DN6 and a-r-r-o-w December 23, 2024 10:14
@hlky
Copy link
Collaborator

hlky commented Dec 23, 2024

Hi @chaowenguo we'll merge this after the single file changes get another review. Thank you for your patience.

@chaowenguo
Copy link
Author

I also add support for pytorch_xla and from single safetensors to TextToVideoZeroPipeline. please review it @hlky

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.

3 participants