ComfyUI学习
ComfyUI
# 安装
# 下载
在解压压缩包后,CMD运行run_cpu.bat,即打开服务,看到前端界面。
\ComfyUI_windows_portable>run_cpu
# 大模型
- 下载大模型stable-diffsion (opens new window),
- 放到\ComfyUI_windows_portable\ComfyUI\models\checkpoints
# Cuda
下载英伟达的Cuda 官方下载 (opens new window)
- cmd验证cuda安装情况:
nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2024 NVIDIA Corporation
Built on Wed_Aug_14_10:26:51_Pacific_Daylight_Time_2024
Cuda compilation tools, release 12.6, V12.6.68
Build cuda_12.6.r12.6/compiler.34714021_0
2
3
4
5
6
# 工具
# 社区
AI 社区 huggingface (opens new window)
# Manager
- 下载
ComfyUI_windows_portable/ComfyUI/custom_nodes $ git clone https://github.com/ltdrdata/ComfyUI-Manager.git
- 重启comfyui,看到manager按钮
# 命令行 Comfy-Cli
Comfy-Cli仓库 (opens new window)
\Python\Python312\Scripts>pip install comfy-cli
Collecting comfy-cli
Downloading comfy_cli-1.1.7-py3-none-any.whl.metadata (10 kB)
>comfy install
warn: The recent workspace None is not a valid ComfyUI path.
Do you agree to enable tracking to improve the application? [y/N]: y
warn: The recent workspace None is not a valid ComfyUI path.
? What GPU do you have? nvidia
Install from https://github.com/comfyanonymous/ComfyUI to C:\Users\xx\Documents\comfy\ComfyUI? [y/N]: y
Installing from 'https://github.com/comfyanonymous/ComfyUI' to 'C:\Users\xx\Documents\comfy\ComfyUI'
2
3
4
5
6
7
8
9
10
# Node节点
# 生成3D模型
# ComfyUI-3D-Pack
ComfyUI-3D-Pack (opens new window) 各种3d生成的集合
github上说需要以下依赖
- Windows 10/11, Ubuntu 22.04
- Python 3.10/3.11/3.12
- CUDA 12.1/11.8
- torch 2.3.0+cu121/cu118,
- torchvision 0.18.0+cu121/cu118
根据视频https://www.youtube.com/watch?v=RjuoLMCpvbI操作
下载 3D-Pack需要的torch-2.3.0+cpu-cp312-cp312-win_amd64.whl,https://download.pytorch.org/whl/torch
下载 torchvision-0.18.0+cpu-cp312-cp312-win_amd64.whl,https://download.pytorch.org/whl/torchvision
\ComfyUI3D\python_embeded\python.exe" -m pip install "C:\Program Files\ComfyUI_env\torchvision-0.18.0+cpu-cp312-cp312-win_amd64.whl" Successfully installed torchvision-0.18.0+cpu
1
2
3
4通过comfyui manager 下载ComfyUI-3D-Pack出错Bad requrst
- 通过git clone 下载也出错
- 在gitlab上直接下载文件 ok
- 重启comfy ui,在comfyui manager 下载ComfyUI-3D-Pack地方,点击 Try Fix
- 遇到问题
Cannot import ComfyUI-3D-Pack module for custom nodes: No module named 'kiui'
, CMD执行[Path to your comfy python.exe] -s -m pip install git+https://github.com/ashawkey/kiuikit.git
ComfyUI-3D-Pack目录下执行
"\ComfyUI3D\python_embeded\python.exe" install.py
反馈需要下载CUDA tookit ['12.1', '11.8']下载安装CUDA 12.1后,再次执行
"\ComfyUI3D\python_embeded\python.exe" install.py
, 开始下载torch==2.4.0+cu121 等- torch2.4.0
- torchaudio-2.4.0
- torchvision-0.18.0
未成功
# Unique3D
Unique3D (opens new window) ComfyUI-Unique3D (opens new window)
使用步骤:
git clone https://github.com/jtydhr88/ComfyUI-Unique3D.git --depth 1
安装到\ComfyUI_windows_portable\ComfyUI\custom_nodes- (Windows) Download the trition whl from https://huggingface.co/madbuda/triton-windows-builds, because it uses python 311, so download whl build for py311 and place it under ComfyUI-Unique3D folder.
- (Windows) run install_windows_portable_win_py311_cu121.bat inside ComfyUI-Unique3D, answer Y while asking remove something
- 错误:
ERROR: triton-2.1.0-cp311-cp311-win_amd64.whl is not a supported wheel on this platform.
- 下载安装 python3.11 https://www.python.org/downloads/windows/
- 指定install_windows_portable_win_py311_cu121.bat文件中python3.11的位置
- Download the weights from huggingface spaces or Tsinghua Cloud Drive, and extract it to ckpt/*.
未成功
# Tripo
ComfyUI-Tripo (opens new window) TripoSR (opens new window)
使用步骤:
- 安装,可以通过ComfyUI-Manager直接安装ComfyUI-Tripo
- 需要 key