Files
ai/justfile
2025-06-17 21:41:00 +02:00

44 lines
1.0 KiB
Makefile

_default:
@just --unsorted --list
# Check project
check:
bc-check
# Format project
fmt:
bc-fmt
# Perform automated fixes
fix:
bc-fix
# Set up new Scaleway GPU instance
setup-scaleway:
apt get python3-full
just setup
# Install ComfyUI
setup:
#!/usr/bin/env bash
python -m venv venv-comfyui
source venv-comfyui/bin/activate
pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu128
git clone git@github.com:comfyanonymous/ComfyUI.git
pip install -r ComfyUI/requirements.txt
pip install -r chatterbox_requirements.txt
git clone https://github.com/ltdrdata/ComfyUI-Manager ComfyUI/custom_nodes/comfyui-manager
# git clone https://github.com/hayden-fr/ComfyUI-Model-Manager.git ComfyUI/custom_nodes/ComfyUI-Model-Manager
# Run ComfyUI
run:
#!/usr/bin/env bash
source venv-comfyui/bin/activate
python ComfyUI/main.py
# Run ComfyUI on CPU
run-cpu:
#!/usr/bin/env bash
source venv-comfyui/bin/activate
python ComfyUI/main.py --cpu