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

Fix diffusers import prompt2prompt #6927

Merged

Conversation

nxbringr
Copy link
Contributor

@nxbringr nxbringr commented Feb 9, 2024

What does this PR do?

  • Fix import statement for diffusers in Prompt2Prompt.
  • Update the ReadMe of Prompt2Prompt with the correct example implementation.

Fixes #6842
Documentation change done in examples/community/README.md, Prompt2Prompt example.

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.

@patrickvonplaten
Copy link
Contributor

cc @UmerHA could you also check quickly if you have a minute? :-)

@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.

@nxbringr
Copy link
Contributor Author

nxbringr commented Feb 14, 2024

The checks are failing for test_pipelines.py/test_download_only_pytorch with the following error (complete error trace here):

FAILED tests/pipelines/test_pipelines.py::DownloadTests::test_download_only_pytorch - requests.exceptions.ReadTimeout: (ReadTimeoutError("HTTPSConnectionPool(host='huggingface.co', port=443): Read timed out. (read timeout=10)"), '(Request ID: b6b03b3e-ecfe-4669-9642-9c6522fdb5a7)')

This particular test works perfectly fine on my local. Given it's a timeout error, do you think its worth restarting the Fast tests for PRs workflow?

cc: @patrickvonplaten @UmerHA

@yiyixuxu yiyixuxu merged commit 7e164d9 into huggingface:main Feb 16, 2024
13 checks passed
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.

ImportError: cannot import name 'Prompt2PromptPipeline' from 'diffusers.pipelines'
4 participants