{{ message }}
Repository navigation
Prevent online access when desired when using download_from_original_stable_diffusion_ckpt - #4271
Merged
Conversation
w4ffl35
marked this pull request as draft
July 25, 2023 21:15
- Bypass requests with config files option added to download_from_original_stable_diffusion_ckpt - Adds local_files_only flags to all from_pretrained requests
w4ffl35
force-pushed
the
convert_from_ckpt_fix
branch
from
July 25, 2023 21:28
cc1f025 to
ac4ec43
Compare
w4ffl35
marked this pull request as ready for review
July 25, 2023 21:29
Contributor
Author
|
To see why this is needed -
your script will hang while it attempts to acquire the missing config files using requests. On the front-end side there is virtually no way of identifying what version of Stable Diffusion a ckpt / safetensors file is (if there is, I have been unable to find documentation stating how to do so and I haven't been able to hack my own solution together). I could perform the same checks that |
Contributor
yoonseokjin
pushed a commit
to yoonseokjin/diffusers
that referenced
this pull request
Dec 25, 2023
…stable_diffusion_ckpt (huggingface#4271) Prevent online access when desired - Bypass requests with config files option added to download_from_original_stable_diffusion_ckpt - Adds local_files_only flags to all from_pretrained requests
AmericanPresidentJimmyCarter
pushed a commit
to AmericanPresidentJimmyCarter/diffusers
that referenced
this pull request
Apr 26, 2024
…stable_diffusion_ckpt (huggingface#4271) Prevent online access when desired - Bypass requests with config files option added to download_from_original_stable_diffusion_ckpt - Adds local_files_only flags to all from_pretrained requests
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
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.

What does this PR do?
Adds
local_files_onlyflag to all from_pretrained calls withindownload_from_original_stable_diffusion_ckptfunction and allows config files to be passed to the function in order to prevent online access via requests when no config file is provided.This allows developers to take advantage of logic within the function which sorts what model type is being loaded and choose the appropriate config file without requiring online access via
requestscall.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