
自分用切り抜き ComfyUI関連
Save Image変数
Save Imageの変数名
ComfyUI_examples / Flux Examples / Flux Dev
animaもこれっぽい
ComfyUI_%date:yyyyMMdd-hhmmss%-%UNETLoader.unet_name%
sdxl_simple
ComfyUI_%date:yyyyMMdd-hhmmss%-%%CheckpointLoaderSimple.ckpt_name%
私的メモにつき、ご使用時には自分用にアレンジしてください。
ComfyUIハードコーディング DEBUG発見用
bash用。パスは自分の所、とファイル名と行数は起動したあとのログをみてね。
find /mnt/j/ComfyUI2 -name "model_base.py" | while read f; do
line=$(sed -n '181p' "$f")
if echo "$line" | grep -q debug; then
echo "== $f =="
echo "$line"
fi
doneComfyUI update
手でいじるととうぜんながら git pullが利かない。
git reset --hard HEAD
git clean -fd
git pull
J:\ComfyUI2\venv\Scripts\python.exe -m pip install -r J:\ComfyUI2\requirements.txt
pull しても requirements.txt は別途処理が必要
ComfyUI venv再作成 cmd
rmdir /s /q J:\ComfyUI2\venv
cd /d J:\ComfyUI2
"C:\Users\chisa\AppData\Local\Programs\Python\Python310\python.exe" -m venv venv
call J:\ComfyUI2\venv\Scripts\activate
pip install --upgrade pip
pip install -r requirements.txt
pip install "numpy<2"
pip install opencv-python-headless
pip install --pre torch torchaudio --index-url https://download.pytorch.org/whl/nightly/cu130 --force-reinstall
pip uninstall -y llama-cpp-python
pip install llama-cpp-python --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cu124
pip install --pre torchvision --index-url https://download.pytorch.org/whl/nightly/cu130
pip install -r J:\ComfyUI2\manager_requirements.txt
#メモ
pip install spandrel boto3 pynvml imageio argostranslate matplotlib timm
pip install scikit-image gguf google-generativeai rotary-embedding-torch hydra-core segment-anything accelerate diffusers
pip install piexif ftfy diffusers
pip install opencv-python-headless==4.7.0.72
pip install "numpy<2" --force-reinstall
切り貼りしたので多少ずれるかもしれない。 pip checkしよう。入れていくうちに勝手にuninstallされて、変になるケースもあるけど。ほかにもちょこちょこ要調整
requirements.txtを間違え環境に入れた時(荒業)
for /f %p in (requirements.txt) do pip uninstall -y %p荒療治なので
pip checkして必要なもの入れたり、要らないものを消したり。
ubuntuでは、システムでメンテナンスでも必要だがそれ以外はvenv推奨だったりするので