Python 3.10.6 설치
Git 설치
Stable Diffusion Web UI 다운로드 & 실행
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
cd stable-diffusion-webui
./webui.bat
브라우저에서 http://127.0.0.1:7860 접속
📌 Mac/Linux 유저는 webui.sh 실행
📌 CUDA 11+ 설치하면 속도 개선됨
Stable Diffusion 모델 다운로드
| 모델 | 특징 |
|---|---|
| SDXL | 최신 모델, 디테일 뛰어남 |
| SD 1.5 | ControlNet과 호환성 좋음 |
| SD 2.1 | 사실적인 이미지 생성 가능 |
.ckpt 또는 .safetensors 파일을 stable-diffusion-webui/models/Stable-diffusion 폴더에 넣기control_v11p_sd15_depth.pth (깊이맵)control_v11p_sd15_openpose.pth (사람 포즈 조정).pth 파일을 stable-diffusion-webui/extensions/sd-webui-controlnet/models 폴더에 ControlNet 모델 추가📌 기본 프롬프트 예시
Aerial view of a disaster scene with rescue workers, firefighters, and emergency responders saving people from a collapsed building. Smoke, debris, and chaos in the background. Helicopters and emergency vehicles in the distance. Highly detailed, ultra-realistic, cinematic lighting.
📌 추가 프롬프트 (ex. 더 사실적으로)
realistic, high-quality, ultra-detailed, 4K, cinematic, photojournalism, emergency response, aerial photography
📌 네거티브 프롬프트 (ex. 비현실적인 요소 제거)
blurry, low-quality, cartoon, painting, anime, distorted face, extra limbs
ControlNet을 활용하면 위치, 배경, 조명 등을 컨트롤할 수 있음
control_v11p_sd15_depth.pth 사용control_v11p_sd15_openpose.pth 사용control_v11p_sd15_canny.pth 사용📌 사용법
Enable 체크Enable 체크이미지에서 일부 수정이 필요하면 Inpainting 기능을 사용하면 됨.
img2img → Inpainting 선택Generate