https://github.com/tomosatop/sd_webui_raspberrypi4
Raspberry Pi 4 で AUTOMATIC1111 を動かす
https://github.com/tomosatop/sd_webui_raspberrypi4
automatic1111 pytorch raspberry-pi-4 stable-diffusion webui
Last synced: 12 months ago
JSON representation
Raspberry Pi 4 で AUTOMATIC1111 を動かす
- Host: GitHub
- URL: https://github.com/tomosatop/sd_webui_raspberrypi4
- Owner: tomosatoP
- License: agpl-3.0
- Created: 2023-06-07T09:06:48.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-09T05:16:01.000Z (over 2 years ago)
- Last Synced: 2023-08-09T06:12:40.141Z (over 2 years ago)
- Topics: automatic1111, pytorch, raspberry-pi-4, stable-diffusion, webui
- Language: Shell
- Homepage:
- Size: 212 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AUTOMATIC1111 with RaspberryPi4
Raspberry Pi 4 で AUTOMATIC1111 を動かす
### ハードウェア
- Raspberry Pi 4B 8GB
- microSD Card 64GB
### ソフトウェア
- Raspberry Pi OS 64bit Lite
### スクリーンショット

CPUの4コアがフル活躍

ちゃんと動いてる

50分もかかった。
## [AUTOMATIC1111/stable-diffusion-webui](https://github.com/AUTOMATIC1111/stable-diffusion-webui)
### memory 確保
CPUのみで実行するには最低でもメモリが16GB以上必要らしい。
~~~diff
~ $ sudo nano /etc/dphys-swapfile
~~~
~~~diff
- CONF_SWAPSIZE=100
+ CONF_SWAPSIZE=8192
- #CONF_MAXSWAP=2048
+ CONF_MAXSWAP=8192
~~~
~~~sh
~ $ sudo systemctl restart dphys-swapfile
# モニタリング
~ $ htop
~~~
### Install on Linux without GPU
user name: user
host name: host
~~~sh
user@host:~ $ sudo apt install wget git python3 python3-venv python3-pip libgl1-mesa-dev
user@host:~ $ sudo -H python3 -m pip install -U pip
user@host:~ $ git clone -b master https://github.com/AUTOMATIC1111/stable-diffusion-webui.git WebSD
user@host:~/WebSD $ python3 -m venv venv --upgrade-deps
user@host:~/WebSD $ . venv/bin/activate
# Pytorch のインストール(最新版になってる!)
(venv) user@host:~/WebSD $ pip install -U torch torchvision torchaudio
# その他のモジュールをアップデート
(venv) user@host:~/WebSD $ pip install -U psutil
(venv) user@host:~/WebSD $ pip install git+https://github.com/ethanfurman/aenum.git
# 設定: GPU無し, インストール済みのPytorch使用, xformers無し, accelerate無し
(venv) user@host:~/WebSD $ nano webui-user.sh
~~~
[webui-user.sh](src/webui-user.sh)
~~~sh
# install and run
user@host:~/WebSD $ bash webui.sh
~~~
> http://host:7860