Skip to content

Instantly share code, notes, and snippets.

@S64
Last active November 29, 2023 04:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save S64/9b45d1e59f75e569d5291d4197c862af to your computer and use it in GitHub Desktop.
Save S64/9b45d1e59f75e569d5291d4197c862af to your computer and use it in GitHub Desktop.
Run ComfyUI on macOS
git clone git@github.com:comfyanonymous/ComfyUI.git
git log -n 1
commit 777f6b15225197898a5f49742682a2be859072d7
Author: comfyanonymous <comfyanonymous@protonmail.com>
Date: Tue Nov 28 14:45:00 2023 -0500
Add to README that SDXL Turbo is supported.
python --version
Python 3.11.3
python -m venv ./.venv/
source ./.venv/bin/activate
pip install -r ./requirements.txt
# https://developer.apple.com/metal/pytorch/
pip install --pre torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/nightly/cpu
# https://github.com/comfyanonymous/ComfyUI/blob/32447f0c392be6a6b64fbac09fd7e7f33eb451f8/.ci/windows_base_files/README_VERY_IMPORTANT.txt#L15-L17
# https://github.com/comfyanonymous/ComfyUI/blob/32447f0c392be6a6b64fbac09fd7e7f33eb451f8/notebooks/comfyui_colab.ipynb#L81-L82
curl --location --continue-at - 'https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/v1-5-pruned-emaonly.ckpt' --output './models/checkpoints/v1-5-pruned-emaonly.ckpt'
# https://github.com/comfyanonymous/ComfyUI/blob/32447f0c392be6a6b64fbac09fd7e7f33eb451f8/notebooks/comfyui_colab.ipynb#L161-L164
curl --location --continue-at - 'https://huggingface.co/ai-forever/Real-ESRGAN/resolve/a86fc6182b4650b4459cb1ddcb0a0d1ec86bf3b0/RealESRGAN_x8.pth?download=true' --output './models/upscale_models/RealESRGAN_x8.pth'
# https://github.com/comfyanonymous/ComfyUI/blob/d03d8aa2e348c6ba3333150eb18aa76f5180a7f0/notebooks/comfyui_colab.ipynb#L140
curl --location --continue-at - 'https://huggingface.co/comfyanonymous/ControlNet-v1-1_fp16_safetensors/resolve/33142dc4c748128c527aa80a93e5f22a56a2c2ab/control_v11p_sd15_openpose_fp16.safetensors?download=true' --output './models/controlnet/control_v11p_sd15_openpose_fp16.safetensors'
curl --location --continue-at - 'https://huggingface.co/latent-consistency/lcm-lora-sdv1-5/resolve/d2a62207399b8f04998c0aa81f45aa5a46254bcc/pytorch_lora_weights.safetensors?download=true' --output './models/loras/pytorch_lora_weights.safetensors'
# https://github.com/comfyanonymous/ComfyUI_examples/blob/8a21245c6934fd5875a2e694b362686e7c023022/sdturbo/README.md?plain=1#L5
curl --location --continue-at - 'https://huggingface.co/stabilityai/sdxl-turbo/resolve/cf0e5cbf9cb1ce0f632875ea8e1b996a9df869d8/sd_xl_turbo_1.0_fp16.safetensors?download=true' --output './models/checkpoints/sd_xl_turbo_1.0_fp16.safetensors'
python main.py --force-fp16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment