본문 바로가기
IT 인터넷

Stable Diffusion WebUI 설치 및 셋팅

by iLah 2023. 7. 20.
반응형

반응형

 

조건문만 입력하면 조건문에 써있는 내용대로 이미지를 뚝딱 만들어내는 그 유명한

 

Stable Diffusion WebUI 를 설치해보고 기본 셋팅까지 알아보겠습니다.

 

Stable Diffusion WebUI 의 기본 환경은 NVIDIA 그래픽카드와 윈도우10/11 이고 브라우저는 크롬과 엣지입니다.

 

기본 설치 프로그램부터 설치하도록 하겠습니다.

 

★ 파이썬 설치 

https://www.python.org/downloads/windows/

 

Python Releases for Windows

The official home of the Python Programming Language

www.python.org

사이트로 이동후 최신버전 설치해주세요. 설치시 Add python to PATH 옵션을 선택해야합니다.

 

★ 깃 설치

https://git-scm.com/download/win

 

Git - Downloading Package

Download for Windows Click here to download the latest (2.41.0) 32-bit version of Git for Windows. This is the most recent maintained build. It was released 6 days ago, on 2023-07-13. Other Git for Windows downloads Standalone Installer 32-bit Git for Wind

git-scm.com

 

Stable Diffusion WebUI 소스 다운로드

 

깃 설치 완료 후에 명령 프롬프트를 열고 원하는 폴더로 이동 후 아래 깃 클론 명령어를 실행합니다.

 

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

 

업데이트를 할 경우 아래 명령어 실행

 

git pull

 

 

★ 실행

 

1) stable-diffusion-webui 폴더의 webui-user.bat 실행

 

이상이 없다면 설치가 진행 될 것이다. 다 설치된 후에

 

 

2) http://127.0.0.1:7860/ 브라우저에서 접속한다.

 

설치가 잘 되었다면 stable-diffusion-webui 기본 화면이 나올것이다.

 

★ 모델(checkpoint)과 VAE 등록

https://huggingface.co/runwayml/stable-diffusion-v1-5/blob/main/v1-5-pruned-emaonly.safetensors

 

v1-5-pruned-emaonly.safetensors · runwayml/stable-diffusion-v1-5 at main

Git LFS Details SHA256: 6ce0161689b3853acaa03779ec93eafe75a02f4ced659bee03f50797806fa2fa Pointer size: 135 Bytes Size of remote file: 4.27 GB Git Large File Storage (LFS) replaces large files with text pointers inside Git, while storing the file contents o

huggingface.co

https://huggingface.co/hakurei/waifu-diffusion-v1-4/blob/main/vae/kl-f8-anime2.ckpt

 

vae/kl-f8-anime2.ckpt · hakurei/waifu-diffusion-v1-4 at main

Git LFS Details SHA256: df3c506e51b7ee1d7b5a6a2bb7142d47d488743c96aa778afb0f53a2cdc2d38d Pointer size: 134 Bytes Size of remote file: 405 MB Git Large File Storage (LFS) replaces large files with text pointers inside Git, while storing the file contents on

huggingface.co

 

 

모델은 stable-diffusion-webui/models/Stable-diffusion 폴더에 넣어준다.

 

VAE는 stable-diffusion-webui/models/VAE 폴더에 넣어준다.

 

stable-diffusion-webui 화면에 checkpoint 및 VAE 옆에 새로고침을 눌러서 모델과 VAE를 적용시켜준다.

 

명령프롬프트에 명령어를 넣어주고 Generate 버튼을 눌러서 이미지가 생성되면 기본 셋팅은 된셈이다.

 

다음글에서는 조금 더 고 퀄리티 이미지를 얻기 위해서 추가 셋팅을 해보도록 하겠다.

 

 

 

 

★ Stable Diffusion WebUI 기본 설정

https://withilah.tistory.com/23

 

Stable Diffusion WebUI 기본설정

프롬프트에 명령어만 입력해주면 입력한 대로 이미지를 만들어주는 Stable Diffusion WebUI 다. Stable Diffusion WebUI 에서 이미지 품질을 높이기 위해 기본설치 후 설정이 필요하다. Settings 탭을 클릭해준

withilah.tistory.com

 

★ Stable Diffusion WebUI 필수 익스텐션 설치

https://withilah.tistory.com/24

 

Stable Diffusion WebUI 필수 익스텐션 설치

앞선 글에서 Stable Diffusion WebUI 기본 설치와 기본 설정에 대해 알아보았다. 이번 글에선 필수 익스텐션 설치에 대해 알아보겠다. ★ Openpose-editor https://github.com/fkunn1326/openpose-editor GitHub - fkunn1326/ope

withilah.tistory.com

 

반응형