/kukuri

Easily build the env for Stable Diffusion web UI. Available in Nvidia Docker 2 and ROCm Docker Container(Radeon) and Native Env(CUDA).

Primary LanguagePython

README

Stable Diffusion web UI の環境構築及びモデルのダウンロードとUIの実行を行うスクリプト群です。

Quick Start

pre-requirements

CUDA11.8/git/Nvida Docker 2/ROCm5.6

初回実行

Nvidia Docker 2

git clone --recursive https://github.com/Sachi854/kukuri.git
cd kukuri
cp ./docker/nvidia/* .
sudo docker compose up

ROCm Docker

git clone --recursive https://github.com/Sachi854/kukuri.git
cd kukuri
cp ./docker/rocm/* .
sudo docker compose up

2回目以降

cd kukuri
sudo docker compose up

ライブラリの再インストール等

# ライブラリの再インストール
sudo docker compose run reinstall
# 最新のリポジトリへ更新
cd kukuri
git pull
git submodule foreach git pull origin master

Connect to UI

http://localhost:7860/

http://localhost:8888/

Tips

ダウンロードするモデルや拡張機能を変更したい場合

extensions/model.json を編集してください。

WSL2のネットワークが遅い場合

https://qiita.com/bioflowy/items/02c9e945439a2d032cd2

powershellを管理者権限で実行し、以下のコマンドを実行してください。

Set-NetAdapterAdvancedProperty -InterfaceDescription 'Hyper-V Virtual Ethernet Adapter' -DisplayName 'Large Send Offload Version 2 (IPv4)' -DisplayValue 'Disabled' -IncludeHidden
Set-NetAdapterAdvancedProperty -InterfaceDescription 'Hyper-V Virtual Ethernet Adapter' -DisplayName 'Large Send Offload Version 2 (IPv6)' -DisplayValue 'Disabled' -IncludeHidden

Deploy ROCm Docker containers

https://rocm.docs.amd.com/en/latest/deploy/docker.html

PyTorch

https://pytorch.org