Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Download SD model without token by default (facebookincubator#769)
Summary: Huggingface allows to download Stable Diffusion model files without user access token. To simplify `download_pipeline.py` user experience lets not mandate user to run `huggingface-cli login` or explicitly provide user access token. Internally `download_pipeline.py` will call `StableDiffusionPipeline.from_petrained()` with `use_auth_token=False` by default. New `download_pipeline.py` Help for `--token`: ``` Usage: download_pipeline.py [OPTIONS] Options: ... --token TEXT Valid values: Huggingface user access token, 'true' to use token generated with 'huggingface-cli login' (stored in ~/.huggingface) or empty string to not use access token (default). ``` Pull Request resolved: facebookincubator#769 Reviewed By: chenyang78 Differential Revision: D46847505 Pulled By: ipiszy fbshipit-source-id: bb5c4c4539758d57978ca6c87da83230cddd3de7
- Loading branch information