Updated FAQ (markdown)
85
FAQ.md
85
FAQ.md
@@ -2,50 +2,17 @@
|
|||||||
# Textual Inversion
|
# Textual Inversion
|
||||||
To enable [Textual Inversion](https://github.com/hlky/sd-enable-textual-inversion) remove `--optimize` and `--optimize-turbo` flags and add `--no-half`, [more info here](https://github.com/AbdBarho/stable-diffusion-webui-docker/issues/6).
|
To enable [Textual Inversion](https://github.com/hlky/sd-enable-textual-inversion) remove `--optimize` and `--optimize-turbo` flags and add `--no-half`, [more info here](https://github.com/AbdBarho/stable-diffusion-webui-docker/issues/6).
|
||||||
-->
|
-->
|
||||||
|
# General
|
||||||
|
|
||||||
### Error response from daemon: could not select device driver "nvidia" with capabilities: `[[gpu]]`
|
## Dockerfile parse error
|
||||||
|
|
||||||
Install NVIDIA Container Toolkit [#81](https://github.com/AbdBarho/stable-diffusion-webui-docker/issues/81)
|
|
||||||
|
|
||||||
https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html#setting-up-nvidia-container-toolkit
|
|
||||||
|
|
||||||
|
|
||||||
### Dockerfile parse error
|
|
||||||
```
|
```
|
||||||
Error response from daemon: dockerfile parse error line 33: unknown instruction: GIT
|
Error response from daemon: dockerfile parse error line 33: unknown instruction: GIT
|
||||||
ERROR: Service 'model' failed to build : Build failed
|
ERROR: Service 'model' failed to build : Build failed
|
||||||
```
|
```
|
||||||
Update docker to the latest version, and make sure you are using `docker compose` instead of `docker-compose`. [#16](https://github.com/AbdBarho/stable-diffusion-webui-docker/issues/16)
|
Update docker to the latest version, and make sure you are using `docker compose` instead of `docker-compose`. [#16](https://github.com/AbdBarho/stable-diffusion-webui-docker/issues/16)
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### Build fails at [The Shell command](https://github.com/AbdBarho/stable-diffusion-webui-docker/blob/5af482ed8c975df6aa0210225ad68b218d4f61da/build/Dockerfile#L11), `/bin/bash` not found in WSL.
|
## lstein: OSError: Can't load tokenizer for 'openai/clip-vit-large-patch14'
|
||||||
|
|
||||||
Edit the corresponding docker file, and change the SHELL from `/bin/bash` to `//bin/bash` [#21](https://github.com/AbdBarho/stable-diffusion-webui-docker/issues/21), note: this is a hack and something in your wsl is messed up.
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### Build fails with credentials errors when logged in via SSH on WSL2/Windows
|
|
||||||
You can try forcing plain text auth creds storage by removing line with "credStore" from ~/.docker/config.json (in WSL). [#56](https://github.com/AbdBarho/stable-diffusion-webui-docker/issues/56)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### Other build errors on windows
|
|
||||||
* Make sure:
|
|
||||||
* Windows 10 release >= 2021H2 (required for WSL to see the GPU)
|
|
||||||
* WSL2 (check with `wsl -l -v`)
|
|
||||||
* Latest Docker Desktop
|
|
||||||
* You might need to create a [`.wslconfig`](https://docs.microsoft.com/en-us/windows/wsl/wsl-config#example-wslconfig-file) and increase memory, if you have 16GB RAM, set the limit to something around 12GB, [#34](https://github.com/AbdBarho/stable-diffusion-webui-docker/issues/34) [#64](https://github.com/AbdBarho/stable-diffusion-webui-docker/issues/64)
|
|
||||||
* You might also need to [force wsl to allow file permissions](https://superuser.com/a/1646556)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### Running in AWS
|
|
||||||
|
|
||||||
You have to use one of AWS's GPU-enabled VMs and their Deep Learning OS images. These have the right divers, the toolkit and all the rest already installed and optimized. [#70](https://github.com/AbdBarho/stable-diffusion-webui-docker/issues/70)
|
|
||||||
|
|
||||||
---
|
|
||||||
### lstein: OSError: Can't load tokenizer for 'openai/clip-vit-large-patch14'
|
|
||||||
|
|
||||||
Just update `docker-compose.yaml` to [refresh the models](https://github.com/lstein/stable-diffusion/issues/34) (i.e. `PRELOAD=true`). [#72](https://github.com/AbdBarho/stable-diffusion-webui-docker/issues/72#issuecomment-1250382056)
|
Just update `docker-compose.yaml` to [refresh the models](https://github.com/lstein/stable-diffusion/issues/34) (i.e. `PRELOAD=true`). [#72](https://github.com/AbdBarho/stable-diffusion-webui-docker/issues/72#issuecomment-1250382056)
|
||||||
|
|
||||||
@@ -59,14 +26,48 @@ Just update `docker-compose.yaml` to [refresh the models](https://github.com/lst
|
|||||||
- CLI_ARGS=
|
- CLI_ARGS=
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### Output is a always green image
|
## Output is a always green image
|
||||||
If [output is a always green image](https://github.com/AbdBarho/stable-diffusion-webui-docker/issues/9), use `--precision full --no-half`.
|
use `--precision full --no-half`. [#9](https://github.com/AbdBarho/stable-diffusion-webui-docker/issues/9)
|
||||||
|
|
||||||
---
|
## CondaError or CondaEnvException
|
||||||
### CondaError or CondaEnvException
|
|
||||||
|
|
||||||
`CondaError: Downloaded bytes did not match Content-Length` or `CondaEnvException: Pip failed, ERROR: THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE`
|
`CondaError: Downloaded bytes did not match Content-Length` or `CondaEnvException: Pip failed, ERROR: THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE`
|
||||||
|
|
||||||
This means your internet connection is unstable so the download failed, just try again.
|
This means your internet connection is unstable so the download failed, just try again.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
# Linux
|
||||||
|
|
||||||
|
### Error response from daemon: could not select device driver "nvidia" with capabilities: `[[gpu]]`
|
||||||
|
|
||||||
|
Install [NVIDIA Container Toolkit](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html#setting-up-nvidia-container-toolkit) [#81](https://github.com/AbdBarho/stable-diffusion-webui-docker/issues/81) and restart the docker service
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
# Windows / WSL
|
||||||
|
|
||||||
|
|
||||||
|
## Build fails at [The Shell command](https://github.com/AbdBarho/stable-diffusion-webui-docker/blob/5af482ed8c975df6aa0210225ad68b218d4f61da/build/Dockerfile#L11), `/bin/bash` not found in WSL.
|
||||||
|
|
||||||
|
Edit the corresponding docker file, and change the SHELL from `/bin/bash` to `//bin/bash` [#21](https://github.com/AbdBarho/stable-diffusion-webui-docker/issues/21), note: this is a hack and something in your wsl is messed up.
|
||||||
|
|
||||||
|
|
||||||
|
## Build fails with credentials errors when logged in via SSH on WSL2/Windows
|
||||||
|
You can try forcing plain text auth creds storage by removing line with "credStore" from ~/.docker/config.json (in WSL). [#56](https://github.com/AbdBarho/stable-diffusion-webui-docker/issues/56)
|
||||||
|
|
||||||
|
|
||||||
|
## Other build errors on windows
|
||||||
|
* Make sure:
|
||||||
|
* Windows 10 release >= 2021H2 (required for WSL to see the GPU)
|
||||||
|
* WSL2 (check with `wsl -l -v`)
|
||||||
|
* Latest Docker Desktop
|
||||||
|
* You might need to create a [`.wslconfig`](https://docs.microsoft.com/en-us/windows/wsl/wsl-config#example-wslconfig-file) and increase memory, if you have 16GB RAM, set the limit to something around 12GB, [#34](https://github.com/AbdBarho/stable-diffusion-webui-docker/issues/34) [#64](https://github.com/AbdBarho/stable-diffusion-webui-docker/issues/64)
|
||||||
|
* You might also need to [force wsl to allow file permissions](https://superuser.com/a/1646556)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
# AWS
|
||||||
|
|
||||||
|
You have to use one of AWS's GPU-enabled VMs and their Deep Learning OS images. These have the right divers, the toolkit and all the rest already installed and optimized. [#70](https://github.com/AbdBarho/stable-diffusion-webui-docker/issues/70)
|
||||||
|
|||||||
Reference in New Issue
Block a user