-
Notifications
You must be signed in to change notification settings - Fork 3.1k
[PPDiffusers] add from_hf_hub to from_pretrained #4625
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
Thanks for your contribution! |
Codecov Report
@@ Coverage Diff @@
## develop #4625 +/- ##
===========================================
+ Coverage 41.92% 42.11% +0.19%
===========================================
Files 434 433 -1
Lines 61824 61819 -5
===========================================
+ Hits 25919 26035 +116
+ Misses 35905 35784 -121
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
JunnYu
reviewed
Feb 2, 2023
|
colab 测试命令 # install paddlepaddle
!python -m pip install paddlepaddle-gpu==2.4.1.post112 -f https://www.paddlepaddle.org.cn/whl/linux/mkl/avx/stable.html
!git clone https://github.com/sijunhe/PaddleNLP.git
%cd PaddleNLP
!git checkout -f ppdiffuser_hf
# install ppdiffusers
%cd ppdiffusers
!python setup.py install
# install paddlenlp
%cd ..
!python setup.py install
# test
from ppdiffusers import StableDiffusionPipeline
import ppdiffusers, paddlenlp
print(ppdiffusers.__version__, paddlenlp.__version__)
pipe = StableDiffusionPipeline.from_pretrained("sijunhe/stable-diffusion-v1-5", from_hf_hub=True) |
JunnYu
reviewed
Feb 3, 2023
JunnYu
reviewed
Feb 3, 2023
JunnYu
reviewed
Feb 3, 2023
JunnYu
reviewed
Feb 3, 2023
JunnYu
reviewed
Feb 3, 2023
JunnYu
approved these changes
Feb 3, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR types
PR changes
Description