Delcos / Hentai-Diffusion

The official place for the best A.I.
224 stars 20 forks source link

Torch Not Downloading #7

Open HollowMind100 opened 1 year ago

HollowMind100 commented 1 year ago

When running the user bat file, the following error occurs

Traceback (most recent call last): File "C:\Users\Aaryan\Downloads\stable-diffusion-webui-master\stable-diffusion-webui-master\launch.py", line 250, in prepare_enviroment() File "C:\Users\Aaryan\Downloads\stable-diffusion-webui-master\stable-diffusion-webui-master\launch.py", line 171, in prepare_enviroment run(f'"{python}" -m {torch_command}', "Installing torch and torchvision", "Couldn't install torch") File "C:\Users\Aaryan\Downloads\stable-diffusion-webui-master\stable-diffusion-webui-master\launch.py", line 34, in run raise RuntimeError(message) RuntimeError: Couldn't install torch. Command: "C:\Users\Aaryan\Downloads\stable-diffusion-webui-master\stable-diffusion-webui-master\venv\Scripts\python.exe" -m pip install torch==1.12.1+cu113 torchvision==0.13.1+cu113 --extra-index-url https://download.pytorch.org/whl/cu113 Error code: 1 stdout: Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu113

stderr: ERROR: Could not find a version that satisfies the requirement torch==1.12.1+cu113 (from versions: none) ERROR: No matching distribution found for torch==1.12.1+cu113

ice051128 commented 1 year ago

Same

Amaterasu77777 commented 1 year ago

Same

Arekgkg13 commented 1 year ago

The issue is that python 3.11 isn't supported by pytorch, only 3.7-3.9 are. I tried downloading and installing 3.9, but that didn't work out either.

Delcos commented 1 year ago

Download anaconda. Then type in anaconda in the start menu and right click, run as admin, and it should open the terminal (not PowerShell the normal one). Then type in pip install pytorch and it should figure out the versions on its own. It pip isn't installed go download that too.

Kingbokser commented 1 year ago

Even with downloading anaconda the first error accures when downloading torch "pip install pytorch" doesn't work and it say something like "It's called 'torch'". When I do "pip install torch" it works, but then it failes when clicking the file, which should oben the game

Sneffel commented 1 year ago

Same as Kingbokser. Even if manually downloaded torch and torchvision through anaconda, it doesn't recognize it and fails.

wildhooman commented 1 year ago

Still having issues, I've tried reinstalling things, and going to previous versions of python (Which was a bad idea apparently). Nothing seems to be working, it just keeps saying the same as the top post. Manual installs haven't worked either.

Update: I talked with a friend more familiar with python, and he said that my issue is doing this on my laptop instead of my PC. I'll update this when I'm not on vacay, but integrated graphics might be the problem.

21plots commented 1 year ago

venv "C:\Users\Samson\Downloads\stable-diffusion-webui-master\venv\Scripts\Python.exe" Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)] Commit hash: Traceback (most recent call last): File "C:\Users\Samson\Downloads\stable-diffusion-webui-master\launch.py", line 294, in prepare_environment() File "C:\Users\Samson\Downloads\stable-diffusion-webui-master\launch.py", line 209, in prepare_environment run_python("import torch; assert torch.cuda.is_available(), 'Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check'") File "C:\Users\Samson\Downloads\stable-diffusion-webui-master\launch.py", line 73, in run_python return run(f'"{python}" -c "{code}"', desc, errdesc) File "C:\Users\Samson\Downloads\stable-diffusion-webui-master\launch.py", line 49, in run raise RuntimeError(message) RuntimeError: Error running command. Command: "C:\Users\Samson\Downloads\stable-diffusion-webui-master\venv\Scripts\python.exe" -c "import torch; assert torch.cuda.is_available(), 'Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check'" Error code: 1 stdout: stderr: Traceback (most recent call last): File "", line 1, in AssertionError: Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check

Its is something to do with gpu, does any one know how to add to commandline?

Delcos commented 1 year ago

What's the gpu brand?

Sneffel commented 1 year ago

What's the gpu brand?

AMD Ryzen

Delcos commented 1 year ago

Add --skip-torch-cuda-test

To the bat file you use to run the software. It should be added as shown here.

COMMAND_ARGS= --skip-torch-cuda-test

21plots commented 1 year ago

How do I edit the bat file? Do I just change it to a text file then change back to bat?

Delcos commented 1 year ago

Open notepad, and then drag the bat file onto that.

Sneffel commented 1 year ago

COMMAND_ARGS= --skip-torch-cuda-test mine looks like this set COMMANDLINE_ARGS= --skip-torch-cuda-test there's set launched it and still RuntimeError: Couldn't install torch.

Jay200001 commented 1 year ago

Same :<

Sneffel commented 1 year ago

Guys it's easy. Install the folder structure from the official repository and add the same args to the bat file. Sadly it didn't work with AMD.