일단 python 3.13 은 중간중간 오류가 남
그래서 3.10.12 로 했음
Mac 에서 Pytorch 설치하기는 아래 링크를 확인
https://developer.apple.com/metal/pytorch/
Accelerated PyTorch training on Mac - Metal - Apple Developer
PyTorch uses the new Metal Performance Shaders (MPS) backend for GPU training acceleration.
developer.apple.com
ComfyUI 설치 할 때 Apple Sillicon 부분을 확인
https://github.com/comfyanonymous/ComfyUI
GitHub - comfyanonymous/ComfyUI: The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface
The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. - comfyanonymous/ComfyUI
github.com
설치 할 때 명령어 들
conda create -n comfyuienv python=3.10.12 -y
conda activate comfyuienv
pip3 install --pre torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/nightly/cpu
git clone https://github.com/comfyanonymous/ComfyUI.git
cd ComfyUI
pip install -r requirements.txt
cd custom_nodes
git clone https://github.com/ltdrdata/ComfyUI-Manager.git
python main.py
ComfyUI 워크플로우 다운로드
https://github.com/ttio2tech/ComfyUI_workflows_collection/blob/main/Hunyuan_video_macbook.json
ComfyUI_workflows_collection/Hunyuan_video_macbook.json at main · ttio2tech/ComfyUI_workflows_collection
Contribute to ttio2tech/ComfyUI_workflows_collection development by creating an account on GitHub.
github.com
comfyui 를 실행하고
http://127.0.0.1:8188/
여기에 들어가면 뜨는 화면에
위에서 다운로드 받은 json 파일을 끌어다 넣고
빨간색 박스가 뜨면서 뭐가 설치가 안됐다고 하면
Manager 버튼 눌러서 뜨는 메뉴에서
Install Missing Custom Nodes 를 눌러서 설치 하고 Restart 하면 된다.
그런 다음 중요한 모델들을 다운 받아서 아래 위치에 잘 넣어 준다.
- drag hunyuan-video-t2v-720p-q4_0.gguf (7.74GB) to > ./ComfyUI/models/unet
- drag clip_l.safetensors (246MB) to > ./ComfyUI/models/text_encoders
- drag llava_llama3_fp8_scaled.safetensors (9.09GB) to > ./ComfyUI/models/text_encoders
- drag hunyuan_video_vae_bf16.safetensors (493MB) to > ./ComfyUI/models/vae
https://huggingface.co/Kijai/HunyuanVideo_comfy/tree/main
여기서는 Fastvideo 720 fp8 버전(13.2GB)을 받아서 사용 함
https://huggingface.co/calcuis/hunyuan-gguf
위 링크에 나머지 파일들이 있어서 참고 하여 받았음
gguf 파일이 용량도 더 작고 해서
다음엔 이 파일을 참고 해봐야겠다.
발열이 꽤나 발생..
20분 정도 지나서
아래 결과물 일단 실행 성공
'Apple Developer > Apple AI' 카테고리의 다른 글
CreatML 기능 살펴보기 (xcode ML 개발 tool) (0) | 2024.06.30 |
---|---|
맥북에서 AI 학습하기 (0) | 2024.06.30 |