0
1

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をローカルで使う方法(個人メモ)

Last updated at Posted at 2023-07-05

00121-4199940851.png
Stable Diffusionをローカル環境で動かすためのメモです。

必要なもの
GPU RTX3090
Python 3.10.6
git
Fork
VScode
stable-diffusion-webui
( https://github.com/AUTOMATIC1111/stable-diffusion-webui.git )

※Python 3.10.6のバージョンは間違わないように気をつけてください。
python --version
でpathされているバージョンをチェック。
もし、間違えて他のバージョンでstable-diffusion-webuiを起動してしまった場合は他のpythonバージョンを削除し、stable-diffusion-webuiをgitから落とし直す

Python 3.10.6のダウンロード
https://www.python.org/downloads/release/python-3106/

gitのダウンロード
https://git-scm.com/download/win

Forkを使ってcloneする。(ローカルDにしました。)
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git

プロンプト(cmd)でpip install xformersインストール

cloneしたstable-diffusion-webuiディレクトリ内の、
webui-user.bat
を書き換える。

set COMMANDLINE_ARGS= --autolaunch --xformers //ハイスペックGPUの場合。スペックによって書き換えるものが変わる。

webui-user.batをWcrickするとインストールが始まる。

しばらく、待っているとブラウザでstable-diffusionが起動する。

0
1
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
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?