728x90

webui-user.bat 실행시

옵션

 

set COMMANDLINE_ARGS= 

--xformers enable xformers for cross attention layers 
이 옵션을 사용하면 속도는 높이고 vram을 적게 사용하는
대신 원하는 이미지가 나오지 않을 가능성이 있음
--reinstall-xformers xformers 강제 재설치
--no-half 모델을 16bit로 실행하지 않음.
--no-half-vae vae를 16bit로 실행하지 않음.
--autolaunch 자동실행
--theme dark 어두운 테마로 실행
--medvram VRam을 반만 쓰는 옵션
--precision full

 

728x90
728x90

* 실행시 

Launching Web UI with arguments: --skip-torch-cuda-test
X:\AI\stable-diffusion-webui\venv\lib\site-packages\torch\cuda\__init__.py:740: UserWarning: CUDA initialization: The NVIDIA driver on your system is too old (found version 11040). Please update your GPU driver by downloading and installing a new version from the URL: http://www.nvidia.com/Download/index.aspx Alternatively, go to: https://pytorch.org to install a PyTorch version that has been compiled with your version of the CUDA driver. (Triggered internally at ..\c10\cuda\CUDAFunctions.cpp:108.)
  return torch._C._cuda_getDeviceCount() if nvml_count < 0 else nvml_count

 

메세지 발생시 CUDA 최신버전 설치 할것.

다운로드 경로 : http://www.nvidia.com/Download/index.aspx

 

Download the latest official NVIDIA drivers

Download the latest official NVIDIA drivers

www.nvidia.com

 

PC에 맞는 설정후 검색후 다운로드 받아 설치한다.

728x90

'AI > Stable Diffusion' 카테고리의 다른 글

실행 옵션 webui-user.bat  (0) 2024.07.07
Stable Diffusion 오류 - Torch is not able to use GPU .....  (0) 2024.05.13
Stable Diffusion 설치  (0) 2024.05.13
728x90

Stable Diffusion 오류 中 Torch is not able to use GPU 

 

✔ webui-user.bat 을 실행했을때 

 

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

 

[오류발생시]

  • webui-user.bat 내용을 변경해야된다. 
  • 내용을 잘 읽어보면  --skip-torch-cuda-test 를 추가하라고 나온다. 
  • set COMMANDLINE_ARGS="--skip-torch-cuda-test" 

 

 

 

728x90

'AI > Stable Diffusion' 카테고리의 다른 글

실행 옵션 webui-user.bat  (0) 2024.07.07
The NVIDIA driver on your system is too old  (0) 2024.05.13
Stable Diffusion 설치  (0) 2024.05.13
728x90

권장 사양

 - VRAM 6GB 이상의 NVIDIA 그래픽 카드가 설치된 PC

- 현시점에서 가장 가성비 좋은 그래픽 카드는 NVIDA의 GeForce RTX3060으로 판단(다를수있어요)

 

1. 파이썬 다운로드 (3.10.6 버전) 및 설치

* 다운로드 경로 https://www.python.org/downloads/release/python-3106/

* 버전은 나중에 변경될수있습니다.

 

 

맞는 운영체제에 따라 다운로드한다.

 

다운로드 받아서 

Add Python 3.10 to PATH 를 체크 후 Install Now 실행

 

2. Git 다운로드및 설치

* 다운로드 경로 : https://git-scm.com/download/win

 

다운받은 파일을 기본설치하면 됩니다.

 

 

3. Stable Diffusion 설치

 

실행 - CMD 를이용하여 명령프롬프트 실행

설치하고자 하는 경로로 이동하여 git 명령을 이용해서 다운로드를 진행한다.

* git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git

 

 

Ex) X 드라이브 AI 폴더안에서 실행 하면 stable-diffusion-webui 폴더에 다운받아진다.

 

4. Stable Diffusion 실행

 

* 설치된 위치에 가서 webui-user.bat(배치 파일) 실행 

* 파일을 실행하면 필요한 내용들을 다운로드.

 

 

728x90

+ Recent posts