윈도우... 그리고 인텔 맥과 다르게 애플 실리콘 맥(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버전 받았어요)
Installation on Apple Silicon
Stable Diffusion web UI. Contribute to AUTOMATIC1111/stable-diffusion-webui development by creating an account on GitHub.
github.com
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
[Stable Diffusion] 맥m1에서 RuntimeError: "upsample_nearest2d_channels_last" not implemented for 'Half' 에러 해결방법
RuntimeError: "upsample_nearest2d_channels_last" not implemented for 'Half' 야심 차게 돌렸더니 이딴 에러가 발생했다. 구글링을 해보니 MacOS를 업데이트했다, 파이썬 버전을 바꿨다.. 등 그런 건 도움도 되지 않았
coding-log.tistory.com
'Logs' 카테고리의 다른 글
-
[Tomcat] Error running 'Tomcat X.X.X': Cannot run program "XXX/bin/catalina.sh" (in directory "XXX/bin"): error=13, Permission denied 에러 해결하는 법2023.11.17
-
[Tomcat / IntelliJ] The origin server did not find a current representation for the target resource or is not willing to disclose that one exists. 404 error 해결하는 법2023.11.17
-
[Stable Diffusion] 맥 m1에서 RuntimeError: "upsample_nearest2d_channels_last" not implemented for 'Half' 에러 해결방법2023.08.18
-
[Error] Unhandled exception: 'ascii' codec can't decode byte 0xea in position 68: ordinal not in range(128) Check the log for more details. MySQL Workbench 에러 해결하는 법.2023.08.15