venv "C:\Users\user\Desktop\stable-diffusion-webui-master\venv\Scripts\Python.exe"

Python 3.10.7 (tags/v3.10.7:6cc6b13, Sep  5 2022, 14:08:36) [MSC v.1933 64 bit (AMD64)]

Commit hash: <none>

Traceback (most recent call last):

  File "C:\Users\user\Desktop\stable-diffusion-webui-master\launch.py", line 120, in <module>

    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\user\Desktop\stable-diffusion-webui-master\launch.py", line 61, in run_python

    return run(f'"{python}" -c "{code}"', desc, errdesc)

  File "C:\Users\user\Desktop\stable-diffusion-webui-master\launch.py", line 55, in run

    raise RuntimeError(message)

RuntimeError: Error running command.

Command: "C:\Users\user\Desktop\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: <empty>

stderr: Traceback (most recent call last):

  File "<string>", line 1, in <module>

AssertionError: Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check


대충 이런 문구가 보인다면 아래 내용을 따라해보자



webui-user.bat파일에서 set COMMANDLINE_ARGS=

set COMMANDLINE_ARGS=--skip-torch-cuda-test --no-half --precision=full --listen --lowvram 로 수정하거나



launch.py 열어서

commandline_args = os.environ.get('COMMANDLINE_ARGS', "--listen") 또는

commandline_args = os.environ.get('COMMANDLINE_ARGS', "")

라고 되어있는걸

commandline_args = os.environ.get('COMMANDLINE_ARGS', " --skip-torch-cuda-test --no-half --precision=full --listen --lowvram ")

으로 수정하면 됨




둘중 하나만 해주면 된다