Repository: stable-diffusion-webui
Issue: [Bug]: UserWarning: Failed to load image Python extension: libc10_hip.so
Labels: asking-for-help-with-local-system-issues

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What happened?

```
Installing requirements
Launching Web UI with arguments: --xformers
/home/zzz/AUTO11/stable-diffusion-webui/venv/lib/python3.10/site-packages/torchvision/io/image.py:13: UserWarning: Failed to load image Python extension: 'libc10_hip.so: cannot open shared object file: No such file or directory'If you don't plan on using image functionality from `torchvision.io`, you can ignore this warning. Otherwise, there might be something wrong with your environment. Did you have `libjpeg` or `libpng` installed before building `torchvision` from source?
```

how to fix this missing dependency?
thanks

### Steps to reproduce the problem

I use a fresh new linux mint installation with cuda toolkit 118

at first place, the script installation gave me wrong version for torch/torchvision

```
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
xformers 0.0.17 requires pyre-extensions==0.0.23, which is not installed.
torchvision 0.15.2+rocm5.4.2 requires torch==2.0.1, but you have torch 2.0.0+cu118 which is incompatible.
```


so i managed to fix this by reinstalling dependencies manually

first by COMMANDLINE_ARGS : 

```
export COMMANDLINE_ARGS="--reinstall-torch"
export TORCH_COMMAND="pip install torch==2.0.0+cu118 --extra-index-url https://download.pytorch.org/whl/cu118"
```

then by pip : (pip seems to give me torch2.0.1)

`pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118`

### What should have happened?

Everything should works fine

### Commit where the problem happens

https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/baf6946e06249c5af9851c60171692c44ef633e0

### What Python version are you running on ?

None

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

_No response_

### What device are you running WebUI on?

_No response_

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

_No response_

### Command Line Arguments

```Shell
no
```


### List of extensions

no

### Console logs

```Shell
################################################################
Install script for stable-diffusion + Web UI
Tested on Debian 11 (Bullseye)
################################################################

################################################################
Running on zzz user
################################################################

################################################################
Repo already cloned, using it as install directory
################################################################

################################################################
Create and activate python venv
################################################################

################################################################
Launching launch.py...
################################################################
Using TCMalloc: libtcmalloc.so.4
Python 3.10.6 (main, May 29 2023, 11:10:38) [GCC 11.3.0]
Version: v1.3.2
Commit hash: baf6946e06249c5af9851c60171692c44ef633e0
Installing requirements
Launching Web UI with arguments: --xformers
/home/zzz/AUTO11/stable-diffusion-webui/venv/lib/python3.10/site-packages/torchvision/io/image.py:13: UserWarning: Failed to load image Python extension: 'libc10_hip.so: cannot open shared object file: No such file or directory'If you don't plan on using image functionality from `torchvision.io`, you can ignore this warning. Otherwise, there might be something wrong with your environment. Did you have `libjpeg` or `libpng` installed before building `torchvision` from source?
  warn(
Loading weights [0466ae65a0] from /home/zzz/AUTO11/stable-diffusion-webui/models/Stable-diffusion/epic-diffusion.safetensors
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 3.9s (import torch: 1.0s, import gradio: 0.8s, import ldm: 0.7s, other imports: 0.7s, load scripts: 0.5s, create ui: 0.2s).
Creating model from config: /home/zzz/AUTO11/stable-diffusion-webui/configs/v1-inference.yaml
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Applying optimization: xformers... done.
Model loaded in 1.9s (load weights from disk: 0.4s, create model: 0.3s, apply weights to model: 0.4s, apply half(): 0.3s, move model to device: 0.4s).
```


### Additional information

_No response_