/stable-diffusion-study

Stable Diffusionのローカル実行検証

Primary LanguagePython

Stable Diffusion のMacローカル環境検証

Python Version Badge

Hugging Face での設定

セットアップ

pip install -r requirements.txt

Hugging Faceのトークン指定

  • ローカルPCで以下のコマンドを実行し、Hugging FaceのTokenを入力
huggingface-cli login
  • 下記のエラーが表示されたら、指示通り git config --global credential.helper store を実行し、再度ログインを実行

Authenticated through git-credential store but this isn't the helper defined on your machine. You might have to re-authenticate when pushing to the Hugging Face Hub. Run the following command in your terminal in case you want to set this credential helper as the default

git config --global credential.helper store

  • 無事ログインが成功すると、 ~/.huggingface/token にトークン情報が保存された旨の完了メッセージが表示される

実行

  • ローカル環境のMacがGPUを使って実行できない環境のため、CPUで実行するため、完了までにかなり時間がかかる
python demo.py