Repository: stable-diffusion-webui
Issue: [Bug]: Updated installation instructions for installing Stable Diffusion using ROCm (Linux) (Documentation and webui.sh needs updating)
Labels: bug-report

### Checklist

- [ ] The issue exists after disabling all extensions
- [x] The issue exists on a clean installation of webui
- [ ] The issue is caused by an extension, but I believe it is caused by a bug in the webui
- [x] The issue exists in the current version of the webui
- [ ] The issue has not been reported before recently
- [ ] The issue has been reported before but has not been fixed yet

### What happened?

Run the same instructions as the documentation says for the first part.
(Debian): `sudo apt install git python3.10-venv -y`
(Fedora): `sudo dnf install python-3.10`
`git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui && cd stable-diffusion-webui`
`python3.10 -m venv venv`

Then update line 156 in webui.sh
`pip install torch torchvision --index-url https://download.pytorch.org/whl/nightly/rocm5.7` --> `pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm6.2`

Run webui.sh with this command
`HSA_OVERRIDE_GFX_VERSION=11.0.0 HIP_VISIBLE_DEVICES=0 ./webui.sh --precision full --no-half`

VERSION=11.0.0 is specific to the 7900XTX, version number may change depending on GPU model so check ROCm documentation just in case. If you have a 7900XTX, follow instructions exactly.



### Steps to reproduce the problem

1. Follow the official documentation

### What should have happened?

Documentation and ROCm in webui.sh needs updating to make webui.sh work error free.

### What browsers do you use to access the UI ?

Brave

### Sysinfo

Not needed as the program is running with all features when instructions above is followed.

### Console logs

```Shell
################################################################
Install script for stable-diffusion + Web UI
Tested on Debian 11 (Bullseye), Fedora 34+ and openSUSE Leap 15.4 or newer.
################################################################

################################################################
Running on user user
################################################################

################################################################
Repo already cloned, using it as install directory
################################################################

################################################################
Create and activate python venv
################################################################

################################################################
Launching launch.py...
################################################################
glibc version is 2.40
Check TCMalloc: libtcmalloc_minimal.so.4
libtcmalloc_minimal.so.4 is linked with libc.so,execute LD_PRELOAD=/lib64/libtcmalloc_minimal.so.4
Python 3.10.16 (main, Dec  4 2024, 00:00:00) [GCC 14.2.1 20240912 (Red Hat 14.2.1-3)]
Version: v1.10.1
Commit hash: 82a973c04367123ae98bd9abdf80d9eda9b910e2
ControlNet init warning: Unable to install insightface automatically. Please try run `pip install insightface` manually.
Launching Web UI with arguments: --precision full --no-half
no module 'xformers'. Processing without...
no module 'xformers'. Processing without...
No module 'xformers'. Proceeding without it.
ControlNet preprocessor location: /home/user/AI/stable-diffusion-webui/extensions/sd-webui-controlnet/annotator/downloads
2025-01-21 14:56:37,167 - ControlNet - INFO - ControlNet v1.1.455
Loading weights [a31be20e08] from /home/user/AI/stable-diffusion-webui/models/Stable-diffusion/v1-5-pruned-emaonly.safetensors
2025-01-21 14:56:37,546 - ControlNet - INFO - ControlNet UI callback registered.
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Creating model from config: /home/user/AI/stable-diffusion-webui/configs/v1-inference.yaml
Startup time: 12.6s (prepare environment: 7.1s, import torch: 1.7s, import gradio: 0.4s, setup paths: 1.6s, other imports: 0.3s, load scripts: 0.6s, create ui: 0.4s, gradio launch: 0.3s).
```

### Additional information

_No response_