lllyasviel / stable-diffusion-webui-forge

GNU Affero General Public License v3.0
7.39k stars 715 forks source link

Torch/CUDA - left behind? #1029

Closed DammageInc closed 16 hours ago

DammageInc commented 1 month ago

So I get this when starting run.bat. Got the latest Forge:

Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)] Version: f2.0.1v1.10.1-previous-248-gf6ef105c Commit hash: f6ef105cb333692d8695ebe14c8409f98675e2f4 Traceback (most recent call last): File "F:\Forge\webui\launch.py", line 51, in main() File "F:\Forge\webui\launch.py", line 39, in main prepare_environment() File "F:\Forge\webui\modules\launch_utils.py", line 434, in prepare_environment raise RuntimeError( RuntimeError: Your device does not support the current version of Torch/CUDA! Consider download another version: https://github.com/lllyasviel/stable-diffusion-webui-forge/releases/tag/latest Press any key to continue . . .

Being not used to command line things - is my computer too old for Forge or?

My PC (in Swedish sry):

Enhetsnamn DESKTOP-0JKIN77 Processor Intel(R) Core(TM) i5-4670K CPU @ 3.40GHz 3.40 GHz Installerat RAM-minne 16,0 GB (15,9 GB går att använda) Enhets-ID E523E3E4-705C-45E5-968A-C7D54BD1FB1C Produkt-ID 00326-10000-00000-AA500 Systemtyp 64-bitars operativsystem, x64-baserad processor Penna och pekskärm Penn- eller tryckinmatning är inte tillgängligt för den här bildskärmen

Enhetsnamn DESKTOP-0JKIN77 Processor Intel(R) Core(TM) i5-4670K CPU @ 3.40GHz 3.40 GHz Installerat RAM-minne 16,0 GB (15,9 GB går att använda) Enhets-ID E523E3E4-705C-45E5-968A-C7D54BD1FB1C Produkt-ID 00326-10000-00000-AA500 Systemtyp 64-bitars operativsystem, x64-baserad processor Penna och pekskärm Penn- eller tryckinmatning är inte tillgängligt för den här bildskärmen

If not too old? What do I do? Appreciate an help.

PopMaRock commented 1 month ago

This is the line of code the error relates to: ` if not args.skip_torch_cuda_test and not check_run_python("import torch; assert torch.cuda.is_available()"): raise RuntimeError( 'Your device does not support the current version of Torch/CUDA! Consider download another version: \n' 'https://github.com/lllyasviel/stable-diffusion-webui-forge/releases/tag/latest'

'Torch is not able to use GPU; '

        # 'add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check'`

States in the comment: 'Torch is not able to use GPU; ' 'add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check'

I have a 4080, 13500K CPU and got this error after a git pull and a half assed attempt at deleting the venv folder (it failed to delete which probably caused my error). I didn't need to add the command line argument. I just deleted the venv folder properly and it resolved.

aoleg commented 1 month ago

This fixes the issue https://github.com/lllyasviel/stable-diffusion-webui-forge/issues/988

You need to download dependencies (as mentioned, "Basically, you need to install the latest MSVC build tools (https://aka.ms/vs/17/release/vs_BuildTools.exe). The specific component you need is MSVC v143 - VS 2022 C++ x64/x86 builds tools (latest).")

DammageInc commented 1 month ago

Thank you both for your kind help and taking time to answer. I tried the component install first and it worked. Have a nice one!

This fixes the issue #988

You need to download dependencies (as mentioned, "Basically, you need to install the latest MSVC build tools (https://aka.ms/vs/17/release/vs_BuildTools.exe). The specific component you need is MSVC v143 - VS 2022 C++ x64/x86 builds tools (latest).")