以下の動画を参考にしているのですが、ここでつまずいてしまいます…どうすればいいでしょうか?
コードはコピペで。無料のAIイラストstable diffusionをGoogle Colaboratoryを用いて使用する方法【ゆっくり解説】【VOICEROID解説】
実行したプログラム
import torch
from diffusers import StableDiffusionPipeline
# make sure you're logged in with `huggingface-cli login`
pipe = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4", revision="fp16", torch_dtype=torch.float16, use_auth_token=True)
実行結果
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-1-a78234f208e2> in <cell line: 2>()
1 import torch
----> 2 from diffusers import StableDiffusionPipeline
3 # make sure you're logged in with `huggingface-cli login`
4 pipe = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4", revision="fp16", torch_dtype=torch.float16, use_auth_token=True)
ModuleNotFoundError: No module named 'diffusers'
---------------------------------------------------------------------------
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.
To view examples of installing some common dependencies, click the
"Open Examples" button below.