Detected that PyTorch and torchvision were compiled with different CUDA versions

Detected that PyTorch and torchvision were compiled with different CUDA versions. PyTorch has CUDA Version=11.5 and torchvision has CUDA Version=11.3. Please reinstall the torchvision that matches your PyTorch install.

Did you try to reinstall PyTorch and/or torchvision using the same CUDA runtime as explained in the error message? If so, could you describe where you are stuck?