LoginSignup
9
9

More than 1 year has passed since last update.

Stable Diffusion導入で変なところでつまづいた人用

Last updated at Posted at 2022-08-26

ModuleNotFoundError: No module named 'ldm'というエラーが出る。

pip install -e .

を実行していない可能性が高い。

ModuleNotFoundError: No module named 'taming'というエラーが出る。

\stable-diffusion\src\taming-transformers\tamig フォルダを\stable-diffusion フォルダまでコピーする。

ModuleNotFoundError: No module named 'clip'というエラーが出る。

\stable-diffusion\src\clip フォルダを\stable-diffusion フォルダにコピーする。

img2img(画像を描き直してもらうやつ)が実行できない。低メモリフォーク版を使っている場合。

フォーク版はtxt2imgと同じくコマンドが違う。

python optimizedSD/optimized_img2img.py --prompt "Austrian alps" --init-img ~/sketch-mountains-input.jpg --strength 0.8 --n_iter 2 --n_samples 5 --H 576 --W 768

のようにoptimizedSDフォルダから名前違いのimg2imgを実行する。

9
9
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
9
9