M1 Mac で stable diffusion webui セットアップメモ
stable-diffusion-webui を導入するぞ おおかた https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Installation-on-Apple-Silicon に従ってセットアップしていく
# stable-diffusion-webui の instalation に従っとく brew install cmake protobuf rust python@3.10 git wget # path を通しとく echo 'export PATH="/opt/homebrew/opt/python@3.10/libexec/bin:$PATH"' >> ~/.zshrc # pip も一応 最新化しとく pip3 install --upgrade pip # git clone ghq get https://github.com/AUTOMATIC1111/stable-diffusion-webui # ディレクトリ移動(実際は peco で移動) cd ~/src/github.com/AUTOMATIC1111/stable-diffusion-webui # model のDL # https://huggingface.co/models?pipeline_tag=text-to-image&sort=downloads などから好きなものを選んで導入しとく wget https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/v1-5-pruned-emaonly.safetensors mv v1-5-pruned-emaonly.safetensors models/Stable-diffusion # webui の起動 ./webui.sh
これだけで起動するので大変お手軽なものである。 あとは、好きな model を追加したり、LoRA を用いて自分でmodelを作ったりしてお好きに生成すればよい。