Updated Main (markdown)

AbdBarho
2022-09-03 14:37:43 +02:00
parent e153e8e35c
commit df250e156e

@@ -1,25 +1,27 @@
## FAQ # 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).
### Docker build fails # Output is a always green image
You get an error like this: If [output is a always green image](https://github.com/AbdBarho/stable-diffusion-webui-docker/issues/9), use `--precision full --no-half`.
# Docker build fails
### You get an error like this:
``` ```
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` (docker space compose) instead of `docker-compose` (docker dash compose). [More info here.](https://github.com/AbdBarho/stable-diffusion-webui-docker/issues/16) Update docker to the latest version, and make sure you are using `docker compose` (docker space compose) instead of `docker-compose` (docker dash compose). [More info here.](https://github.com/AbdBarho/stable-diffusion-webui-docker/issues/16)
Other build errors on windows: (thanks to [@SuddenDevelopment](https://github.com/SuddenDevelopment) for reporting):
### 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 `build/Dockerfile`, and change the SHELL from `/bin/bash` to `//bin/bash`, thanks to [@MiccoHadje](https://github.com/MiccoHadje) for solution. More info in [#21](https://github.com/AbdBarho/stable-diffusion-webui-docker/issues/21)
### Other build errors on windows: (thanks to [@SuddenDevelopment](https://github.com/SuddenDevelopment) for reporting):
* Update to latest windows 10 release 2021H2 (required for WSL to see the GPU) * Update to latest windows 10 release 2021H2 (required for WSL to see the GPU)
* Update to WSL2 (download and switch to version 2) * Update to WSL2 (download and switch to version 2)
* Install / Update Docker Desktop * Install / Update Docker Desktop
* In WSL, run `dos2unix build/*` (you might need to install it first `sudo apt install dos2unix`) * In WSL, run `dos2unix build/*` (you might need to install it first `sudo apt install dos2unix`)
### Excessive model reload
This was added to reduce memory usage on small GPUs, if you want this changed, [create an issue here](https://github.com/hlky/stable-diffusion-webui/issues)
### 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).
### Output is a always green imagee
If [output is a always green image](https://github.com/AbdBarho/stable-diffusion-webui-docker/issues/9), use `--precision full --no-half`.