lshqqytiger / stable-diffusion-webui-amdgpu

Stable Diffusion web UI
GNU Affero General Public License v3.0
1.67k stars 174 forks source link

[Feature Request]: Run on RX7800xt #474

Closed Csavoldi closed 5 days ago

Csavoldi commented 2 weeks ago

Is there an existing issue for this?

What would your feature do ?

Allow webui-user.bat to execute successfully. Paste below into "webui-user.bat": @echo off

set PYTHON= set GIT= set VENV_DIR= set COMMANDLINE_ARGS=--skip-torch-cuda-test --use-directml --use-zluda --skip-torch-cuda-test --skip-python-version-check --api --no-half

call webui.bat

Proposed workflow

  1. Go to ....
  2. Press ....
  3. ...

Additional information

No response

VeteranXT commented 2 weeks ago

Pick one: --use-zluda or --use-directml not both. I do recommend Zluda its quite faster.

Csavoldi commented 2 weeks ago

Corrected: @echo off

set PYTHON= set GIT= set VENV_DIR= set COMMANDLINE_ARGS=--skip-torch-cuda-test --use-directml --skip-python-version-check --api --no-half

call webui.bat

This also works: @echo off

set PYTHON= set GIT= set VENV_DIR= set COMMANDLINE_ARGS= --use-directml --skip-torch-cuda-test --skip-python-version-check --api --no-half --medvram --precision full --no-half --no-half-vae --opt-split-attention-invokeai --always-batch-cond-uncond --opt-sub-quad-attention --sub-quad-q-chunk-size 512 --sub-quad-kv-chunk-size 512 --sub-quad-chunk-threshold 80 --disable-nan-check --upcast-sampling set SAFETENSORS_FAST_GPU=1

call webui.bat

Csavoldi commented 2 weeks ago

Unfortunately its still quite slow and most models cause the app to run out of vram.

VeteranXT commented 2 weeks ago

VAE resolution is 4x time bigger than SD 1.5. So it 4x time slower.

CS1o commented 2 weeks ago

Install the webui with Zluda correctly by using my Automatic1111 Zluda Guide from here: https://github.com/CS1o/Stable-Diffusion-Info/wiki/Installation-Guides