Essential ComfyUI Tricks

Useful commands when using ComfyUI from the cloned Github repo.

Change the location of the models, which is useful for backing up models, where a separate backup location already exists.

mv /data/Git/ComfyUI/models /data/ComfyUI/models
ln -s /data/ComfyUI/models /data/Git/ComfyUI/models

Create and run ComfyUI as a service.

sudo nano /etc/systemd/system/comfyui.service
[Unit]
Description=ComfyUI service
After=network.target
StartLimitIntervalSec=0

[Service]
Type=simple
Restart=always
RestartSec=1
User=abc
ExecStart=/data/venv/comfyui/bin/python /data/Git/ComfyUI/main.py --listen

[Install]
WantedBy=multi-user.target
sudo systemctl enable comfyui
sudo systemctl start comfyui
sudo systemctl status comfyui

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *