Stable Diffusion Web UI 맥북 설치 및 사용법(Automatic1111 on Mac)

Gaebaldaramg·2023년 12월 14일
1

Stable Diffusion

목록 보기
1/1
post-thumbnail

How to Install on Mac 맥 설치방법

  1. homebrew가 안되어 있다면 설치
  2. 터미널 열고 완료될 때마다 순서대로 입력
brew install cmake protobuf rust python@3.10 git wget
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui
stable-diffusion-webui/models/Stable-diffusion
  1. 설치 완료 되면
cd stable-diffusion-webui
./webui.sh

첫 설치는 Stable Diffusion 1.5 추천

참고)
Stable Diffusion web UI
https://github.com/AUTOMATIC1111/stable-diffusion-webui?tab=readme-ov-file#installation-on-apple-silicon
Installation on Apple Silicon https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Installation-on-Apple-Silicon

❤️‍🩹 M1 에서 실행 후 런타임 에러 발생시 ,

./webui.sh --precision full --no-half

 

Automatic1111 = 스테이블 디퓨전 사용시 표준 GUI(실행시 나오는 창)

스테이블 디퓨전 웹UI 실행에 필요한 명령어

1) 폴더 진입
cd stable-diffusion-webui
2) 실행
./webui.sh
3) 업데이트 필요할때
git pull

test2img = 프롬프트로 text to image (가장 기본)

프롬프트 생성할 때 생각해야할 것

✅ 뭐든 먼저 나오는 단어를 더 중요하게 취급함 - 순서를 바꿔볼 것
1. photo or painting
2. person or animal or landscape + other elements
3. mood, light(soft, ambient, ring light, neon)
4. environment(indoor, outdoor, underwater, in space)
5. color(vibrant, dark, pastel)/ color combination, style
6. view(front, overhead, side)
7. background(solid color, nebula, forest)
8. special art style(3D render, studio ghibli, movie poster)
9. lens(macro, telephoto)-type of picture

프롬프트 외에 파라미터들

  • 그림의 폭(Width)와 높이(Height)
    그림 크기 512x512로 지정하는 것이 기본이라 이것보다 크기를 키우면 VRAM이 더 많이 필요

  • 무분류기 안내(CFG, Classifier Free Guidance) 기본 값은 7, 낮은 숫자를 입력하면 AI 의 자율성이 높아짐/높은 숫자를 입력하면 프롬프트에 맞는 그림이 나올 가능성이 높아지지만 다양성 하락하고 결함이 생김 - 처리속도에는 상관 없음

    2~6 : creativity 높고 프롬프트를 따르지 않을 가능성도 높음
    7-10 : 추천. creativity & 프롬프트 준수성 둘다 균형적
    10-15 : 나의 프롬프트가 정말 잘 작성되었고 정확하다고 확신할 때 사용
    16-20 : 프롬프트가 완벽하지 않다면 추천하지 않음

  • 이미지 개수(Batch Size)

  • 샘플링 횟수(Sampling Steps) 잡음 제거 횟수 or
    추론 횟수라고 생각하면 됨. 기본 25, complete noise로 시작해서 점점 최종 결과물로 가는데 10정도면 형상이 완성 25정도면 거의 완성이 됨

⬇️ 사용 모델 참고 ⬇️

SDXL 스냅 촬영 / 한복 모델
https://civitai.com/models/118913/sdxl-10-arienmixxl-asian-portrait
(중국에서 만든거라 한푸라서 잘 걸러야함)

SDXL 1.0은 2023년 7월 26일 공개됨(https://stability.ai/news/stable-diffusion-sdxl-1-announcement 참고)
SDXL를 설치하지 않고 사용해보려면 Stability AI 공식 테스트 사이트(https://stability.ai/news/stable-diffusion-sdxl-1-announcement)를 활용하면 됨 but, 거의 대부분 유료 - 1달에 약 1.4만원, 1년에 14만원 정도 (23.12.20기준)

판타지 영화 캐릭터
https://civitai.com/models/81458/absolutereality

profile
개발다람g

0개의 댓글