Repository: stable-diffusion-webui
Issue: [Bug]: Tried on Ubuntu 22.04.3 with ROCm 5.6 and pytorch 2.1.1 with a single error at the end.
Labels: bug-report

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What happened?

### Steps to reproduce the problem

I tried this tutorial for ROCm installation

https://phazertech.com/tutorials/rocm.html


### What should have happened?

The web ui should run appropriately

### Sysinfo

test

### What browsers do you use to access the UI ?

Mozilla Firefox

### Console logs

```

################################################################
Repo already cloned, using it as install directory
################################################################

################################################################
Create and activate python venv
################################################################

################################################################
Launching launch.py...
################################################################
Using TCMalloc: libtcmalloc_minimal.so.4
Python 3.8.18 (default, Aug 25 2023, 13:20:30) 
[GCC 11.4.0]
Version: v1.6.0-2-g4afaaf8a
Commit hash: 4afaaf8a020c1df457bcf7250cb1c7f609699fa7
Installing requirements
Launching Web UI with arguments: 
no module 'xformers'. Processing without...
no module 'xformers'. Processing without...
Traceback (most recent call last):
  File "launch.py", line 48, in <module>
    main()
  File "launch.py", line 44, in main
    start()
  File "/home/rmdn/dev/python/stable-diffusion-webui/modules/launch_utils.py", line 432, in start
    import webui
  File "/home/rmdn/dev/python/stable-diffusion-webui/webui.py", line 13, in <module>
    initialize.imports()
  File "/home/rmdn/dev/python/stable-diffusion-webui/modules/initialize.py", line 33, in imports
    from modules import shared_init
  File "/home/rmdn/dev/python/stable-diffusion-webui/modules/shared_init.py", line 5, in <module>
    from modules import shared
  File "/home/rmdn/dev/python/stable-diffusion-webui/modules/shared.py", line 5, in <module>
    from modules import shared_cmd_options, shared_gradio_themes, options, shared_items, sd_models_types
  File "/home/rmdn/dev/python/stable-diffusion-webui/modules/options.py", line 74, in <module>
    class Options:
  File "/home/rmdn/dev/python/stable-diffusion-webui/modules/options.py", line 77, in Options
    def __init__(self, data_labels: dict[str, OptionInfo], restricted_opts):
TypeError: 'type' object is not subscriptable
r
```


### Additional information

![Screenshot from 2023-11-19 16-04-23](https://github.com/AUTOMATIC1111/stable-diffusion-webui/assets/123847861/7833f0c5-364a-48c2-8911-8102c940e03c)

I changed the webui.sh file to

```
# Check prerequisites
gpu_info=$(lspci 2>/dev/null | grep -E "VGA|Display")
case "$gpu_info" in
    *"Navi 1"*)
        export HSA_OVERRIDE_GFX_VERSION=10.3.0
        if [[ -z "${TORCH_COMMAND}" ]]
        then
            pyv="$(${python_cmd} -c 'import sys; print(".".join(map(str, sys.version_info[0:2])))')"
            if [[ $(bc <<< "$pyv <= 3.10") -eq 1 ]] 
            then
                # Navi users will still use torch 1.13 because 2.0 does not seem to work.
                export TORCH_COMMAND="pip install torch==1.13.1+rocm5.2 torchvision==0.14.1+rocm5.2 --index-url https://download.pytorch.org/whl/rocm5.2"
            else
                printf "\e[1m\e[31mERROR: RX 5000 series GPUs must be using at max python 3.10, aborting...\e[0m"
                exit 1
            fi
        fi
    ;;
    *"Navi 2"*) export HSA_OVERRIDE_GFX_VERSION=10.3.0
    ;;
    *"Navi 3"*) [[ -z "${TORCH_COMMAND}" ]] && \
         export TORCH_COMMAND="pip install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/rocm5.6"
        # Navi 3 needs at least 5.5 which is only on the nightly chain, previous versions are no longer online (torch==2.1.0.dev-20230614+rocm5.5 torchvision==0.16.0.dev-20230614+rocm5.5 torchaudio==2.1.0.dev-20230614+rocm5.5)
        # so switch to nightly rocm5.6 without explicit versions this time
    ;;
    *"Renoir"*) export HSA_OVERRIDE_GFX_VERSION=9.0.0
        printf "\n%s\n" "${delimiter}"
        printf "Experimental support for Renoir: make sure to have at least 4GB of VRAM and 10GB of RAM or enable cpu mode: --use-cpu all --no-half"
        printf "\n%s\n" "${delimiter}"
    ;;
    *)
    ;;
esac
if ! echo "$gpu_info" | grep -q "NVIDIA";
then
    if echo "$gpu_info" | grep -q "AMD" && [[ -z "${TORCH_COMMAND}" ]]
    then
        export TORCH_COMMAND="pip install torch==2.1.1+rocm5.6 torchvision==0.16.1+rocm5.6 --index-url https://download.pytorch.org/whl/rocm5.6"
    fi
fi
```