[Stable Diffusion] 맥(mac) m1에서 Stable Diffusion web-ui 실행시키는 법
윈도우... 그리고 인텔 맥과 다르게 애플 실리콘 맥(m1 이상의 칩을 쓴)은 이래저래 호환성이 떨어진다. (당연함.)
그래서 뭐든지 남들과는 다르게 쉽게 작동해주지 않는다.
그래서 똥꼬쇼를 한 나. 쉽게 실행하는 방법을 소개합니다.
0. 터미널에 Homebrew 설치하기 (설마 맥쓰면서 Homebrew 없는 개발자는 없겠죠? ㅎㅎ)
1. brew로 파이썬 3.10버전 깔기
brew install cmake protobuf rust python@3.10 git wget
2. Stable Diffusion web ui git clone 받기
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui
3. Stable Diffusion model 다운 받기 (저는 1.5버전 받았어요)
4. 받은 파일을 stable-diffusion-webui > models > Stable-diffusion 이 경로에 넣어주기.
터미널 열자마자 바로 명령어를 따라 쳤다면 현재의 경로는 /Users/본인계정이름 입니다. finder에서 열어줍니다.
사용자 > 본인 계정이름 가시면 있습니다.
거기서 stable-diffusion-webui 파일을 찾아 순서대로 들어가시면 됩니다.
맞게 들어왔다면 Put Stable Diffusion checkpoints here.txt라는 파일이 있습니다. (여기다 넣으라는 뜻)
5. 터미널에서 실행하기
git clone한 곳에 그대로 있다고 가정한 상황입니다.
cd stable-diffusion-webui
./webui.sh
정상적으로 실행이 됐다면 터미널에서 이런 화면이 뜰 겁니다.
화면에 나온 로컬 주소인 http://127.0.0.1:7860 에 접속해보세요!
이렇게 화면이 뜨면 잘 실행된 것입니다. 여기서 단어 아무거나 넣고 돌려보세요.
이렇게 했는데 실행이 됐다고요? 축하합니다. 하지만 저는 안되더군요.
RuntimeError: "upsample_nearest2d_channels_last" not implemented for 'Half'
이딴 에러가 발생했습니다.
어떻게 해결했는지는 아래 링크를 참조하세요.
https://coding-log.tistory.com/274