2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Stable Diffusion v1.4をGoogle Colabで始めた時に遭遇したエラーの解決メモ

Last updated at Posted at 2022-08-24

背景

こちらのnoteを参考にGoogle Colabを作業していくと

from diffusers import StableDiffusionPipeline

# StableDiffusionパイプラインの準備
pipe = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4", use_auth_token=YOUR_TOKEN)
pipe.to("cuda")

このコードの実行で次のようなエラー

Access to model CompVis/stable-diffusion-v1-4 is restricted and you are not in the authorized list. 
Visit https://huggingface.co/CompVis/stable-diffusion-v1-4 to ask for access.

うーんこまった

解決方法

エラー文の通りに

にアクセス

すると

image.png

と出てくるので
ライセンスに同意して「Access repository」をクリック。

これで解決!

image.png

「japanese_cat_skipping」で生成された画像がこちらです。
japanese_cat_skipping.png

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?