2023년 1월 24일 화요일

내 PC에 AI(인공지능) 그림 그리기 설치

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

에 있는 소스를 이용한 AI(인공지능) 그림 그리기 설치 하는 것이다.


Python 3.10.6을 설치한다.

설치할때 "Add Python to PATH"를 체크한다.

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


git을 설치한다.

64-bit Git for Windows Setup 으로 설치한다.

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



cmd로 명령어 프롬프트를 실행한다.

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

을 실행하여 stable-diffusion-webui 소스를 다운 받는다.

이 다운받은 소스는 c:나 C:\Windows\System32\ 에

stable-diffusion-webui 폴더에 있다.

혹시 System32에 있다면 C 드라이브로 옮겨준다.


학습된 model을 다운 받아서 넣는다.

https://huggingface.co/runwayml/stable-diffusion-v1-5

v1-5-pruned-emaonly.ckpt 는 머신런닝된 모델

v1-5-pruned.ckpt 는 머신러닝+ 머신러닝을 더 시킬수 있는 모델이다.

v1-5-pruned.ckpt 을 다운받아서 

stable-diffusion-webui\models\Stable-diffusion 에 넣어준다.



위 그림 스타일과 같은

실사 사진과 같은 model을 원한다면
머신러닝된 모델을 다운 받는다.
https://civitai.com/models/6424/chilloutmix

C:\stable-diffusion-webui\models\Stable-diffusion 에 넣어주면 된다.


VAE 모델 다운로드

https://huggingface.co/stabilityai/sd-vae-ft-mse-original/tree/main

C:\stable-diffusion-webui\models\VAE 에 넣는다.


GFPGAN 을 다운 받아서 base

https://github.com/TencentARC/GFPGAN

V1.4 model을 다운받아서 

stable-diffusion-webui 폴더에 넣어준다.


webui-user.bat 을 실행한다.


실행완료 후 나온 URL을 브라워저에 붙이면 실행된다.

http://127.0.0.1:7860/






댓글 없음:

댓글 쓰기