AI & Stable Diffusion
ComfyUI 설치 - Mac
romeoh
2023. 12. 25. 18:47
반응형
$ pwd
/Users/romeoh
$ mkdir AI
$ cd AI
Terminal을 실행해서 ~/AI 폴더를 생성합니다.
Homebrew 설치
설치 명령을 복사해서 AI 폴더에서 실행합니다.
## Homebrew 설치 명령어
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
## Homebrew 삭제 명령어
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall.sh)"
설치가 완료되면 확인을 할수있습니다.
$ brew doctor
Your system is ready to brew.
Python3 버전확인
$ python3 --version
Python 3.11.2
3.11 이상이 설치되어야 합니다.
3.11 이하일 경우 버전을 업데이트 합니다.
$ brew install python@3.11
pip3 setuptools 설치
$ pip3 install --upgrade pip setuptools
Pytorch 설치
https://pytorch.org/get-started/locally/#macos-version
명령어를 실행합니다.
Comfy UI 설치
https://github.com/comfyanonymous/ComfyUI
Git 주소를 복사합니다.
AI 폴더에 clone 합니다.
$ git clone https://github.com/comfyanonymous/ComfyUI.git
ComfyUI/requirements.txt 파일에 필요한 내용을 확인 할수 있습니다.
pip3로 설치합니다.
$ cd ComfyUI
$ pip3 install -r requirements.txt
ComfyUI 실행
$ python3 main.py
http://127.0.0.1:8188 에서 Comfy UI를 확인 할 수 있습니다.
ComfyUI Manager 확장 프로그램 설치
https://github.com/ltdrdata/ComfyUI-Manager
사이트에서 주소를 복사합니다.
$ cd custom_nodes
$ git clone https://github.com/ltdrdata/ComfyUI-Manager.git
custom_nodes 폴더로 이동해서 clone 합니다.
다시 서버를 실행합니다.
Manager 버튼이 보이면 성공입니다.
반응형