基于nvidia/cuda镜像,以build模式生成开发环境(预装python3.12、vscode中文语言包、aria2c下载工具等)。之后生成venv并预装torch、flash_attn、sageattention等库。预装部分ComfyUI热门插件,并提供基于Gradio的图形化下载工具。
目前配置为从镜像启动。如需要每次启动重新构建docker环境可以自行修改 .cnb.yml 文件,重新构建的环境不含venv和ComfyUI,可参考该介绍最后的venv生成方法和安装ComfyUI及插件。
相关项目链接:ComfyUI 在线体验(飞桨AI Studio星河社区)
新增模型自动下载功能,ComfyUI启动后界面内可选择的模型在运行时会自动下载到云节点缓存,无需人为操作,也不需要保存到个人仓库!!!
**注意:**自动下载功能是修改ComfyUI源码实现的,如果自行更新ComfyUI,可能会失去自动下载功能!!!
目前自动下载功能包括checkpoints、clip、clip_vision、diffusion_models、loras、text_encoders、upscale_models、vae文件夹~
模型均来源于AI Models,不可商用!不可商用!不可商用!
环境启动后会自动启动ComfyUI。如需关闭,终端中按Ctrl+c。
再次启动ComfyUI,终端输入 qd,回车运行。可添加其他启动参数,如 qd --use-sage-attention,启用sageattention。
注意:--listen、--auto-launch参数已内置,无需额外添加。
四种打开外链的方法(选一种即可):

首先点击右下角 + 打开第二个终端,在新终端中输入 ui,回车运行,将自动打开下载工具界面。如需关闭,对应终端中按Ctrl+c。

Gradio下载工具界面:

预设下载模块中预置了一些模型的下载链接和存放路径,首先选择一级分类和二级分类,然后选择预设文件列表(可多选),最后点击开始下载或生成终端下载代码。
Aria2c和Wget模块均可自定义下载链接和保存路径,对于多数下载链接可以直接识别文件名,无法识别的需要手工输入。
注意:
提交文件或文件夹(终端内运行):
# add 文件或文件夹的路径1 文件或文件夹的路径2 文件或文件夹的路径3 ... # 例如提交comfyui、custom_nodes、venv文件夹 add comfyui custom_nodes venv
注意:可在资源管理器内,右键文件或文件夹,复制路径。
删除文件或文件夹(终端内运行,谨慎操作!):
del 文件或文件夹的路径1 文件或文件夹的路径2 文件或文件夹的路径3 ...
终端内运行:update
预设下载中有的模型尽量不要提交到自己的仓库,预设链接是内网链接,下载很快。免费空间只有100+100GB,只要提交文件就会占用空间,后续即使删除文件,空间占用不会降低。需要释放仓库空间只能是删除仓库(注意下载备份重要文件!)。
# 生成venv python3 -m venv venv # 激活venv source venv/bin/activate # 安装pytorch(注意cuda版本) pip install torch==2.7.1 torchvision==0.22.1 torchaudio==2.7.1 --index-url https://download.pytorch.org/whl/cu128 # pip install torch==2.8.0 torchvision==0.23.0 torchaudio==2.8.0 --index-url https://download.pytorch.org/whl/cu129 # 安装dev版本的pytorch(注意cuda版本) pip install -U torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu129 # 安装xformers(注意cuda版本,低版本pytorch需要手工指定xformers版本) pip install xformers --index-url https://download.pytorch.org/whl/cu128 # pytorch版本 xformers版本对照表(仅供参考) # torch==2.8.0 torchvision==0.23.0 torchaudio==2.8.0 xformers==0.0.32.post2 # torch==2.7.1 torchvision==0.22.1 torchaudio==2.7.1 xformers==0.0.31.post1 # torch==2.7.0 torchvision==0.22.0 torchaudio==2.7.0 xformers==0.0.30 # torch==2.6.0 torchvision==0.21.0 torchaudio==2.6.0 xformers==0.0.29.post2 # torch==2.5.1 torchvision==0.20.1 torchaudio==2.5.1 xformers==0.0.28.post3 # torch==2.5.0 torchvision==0.20.0 torchaudio==2.5.0 xformers==0.0.28.post2 # torch==2.4.1 torchvision==0.19.1 torchaudio==2.4.1 xformers==0.0.28.post1 # torch==2.4.0 torchvision==0.19.0 torchaudio==2.4.0 xformers==0.0.27.post2 # torch==2.3.1 torchvision==0.18.1 torchaudio==2.3.1 xformers==0.0.27 # torch==2.3.0 torchvision==0.18.0 torchaudio==2.3.0 xformers==0.0.26.post1 # torch==2.2.2 torchvision==0.17.2 torchaudio==2.2.2 xformers==0.0.26 # torch==2.2.1 torchvision==0.17.1 torchaudio==2.2.1 xformers==0.0.25 # torch==2.2.0 torchvision==0.17.0 torchaudio==2.2.0 xformers==0.0.24 # torch==2.1.2 torchvision==0.16.2 torchaudio==2.1.2 xformers==0.0.23.post1 # torch==2.1.1 torchvision==0.16.1 torchaudio==2.1.1 xformers==0.0.23 # torch==2.1.0 torchvision==0.16.0 torchaudio==2.1.0 xformers==0.0.22.post7 # torch==2.0.1 torchvision==0.15.2 torchaudio==2.0.2 无xformers # torch==2.0.0 torchvision==0.15.1 torchaudio==2.0.1 无xformers # 从源码安装xformers(pip安装的版本有问题时可尝试,低版本torch需要自己找低版本xformers源码) git clone https://github.com/facebookresearch/xformers.git cd xformers git submodule update --init --recursive python setup.py install cd .. # 安装flash-attn(具体版本得看插件要求) pip install flash-attn==2.8.0.post2 # 安装SageAttention git clone https://github.com/thu-ml/SageAttention.git cd SageAttention export EXT_PARALLEL=4 NVCC_APPEND_FLAGS="--threads 8" MAX_JOBS=32 # parallel compiling (Optional) python setup.py install cd ..
# 下载ComfyUI git clone https://github.com/comfyanonymous/ComfyUI.git /workspace/comfyui # 下载常用插件 cd /workspace/custom_nodes git clone https://github.com/1038lab/ComfyUI-RMBG git clone https://github.com/7BEII/Comfyui_PDuse git clone https://github.com/Acly/comfyui-inpaint-nodes git clone https://github.com/AIFSH/ComfyUI-UVR5 git clone https://github.com/AInseven/ComfyUI-fastblend git clone https://github.com/AIrjen/OneButtonPrompt git clone https://github.com/badxprogramm/ComfyUI-GradientBlur git clone https://github.com/BlenderNeko/ComfyUI_ADV_CLIP_emb git clone https://github.com/bronkula/comfyui-fitsize git clone https://github.com/catscandrive/comfyui-imagesubfolders git clone https://github.com/chflame163/ComfyUI_FaceSimilarity git clone https://github.com/chflame163/ComfyUI_LayerStyle git clone https://github.com/chflame163/ComfyUI_LayerStyle_Advance git clone https://github.com/chrisgoringe/cg-image-filter git clone https://github.com/chrisgoringe/cg-use-everywhere git clone https://github.com/christian-byrne/audio-separation-nodes-comfyui git clone https://github.com/city96/ComfyUI-GGUF git clone https://github.com/coreyryanhanson/ComfyQR git clone https://github.com/crystian/comfyui-crystools git clone https://github.com/cubiq/ComfyUI_essentials git clone https://github.com/cubiq/ComfyUI_InstantID git clone https://github.com/cubiq/ComfyUI_IPAdapter_plus git clone https://github.com/cubiq/PuLID_ComfyUI git clone https://github.com/CY-CHENYUE/ComfyUI-Janus-Pro git clone https://github.com/CY-CHENYUE/ComfyUI-Redux-Prompt git clone https://github.com/da2el-ai/D2-SavePSD-ComfyUI git clone https://github.com/djbielejeski/a-person-mask-generator git clone https://github.com/Dontdrunk/ComfyUI-DD-Translation git clone https://github.com/dorpxam/ComfyUI-LTXVideoLoRA git clone https://github.com/EllangoK/ComfyUI-post-processing-nodes git clone https://github.com/evanspearman/ComfyMath git clone https://github.com/EvilBT/ComfyUI_SLK_joy_caption_two git clone https://github.com/Extraltodeus/Skimmed_CFG git clone https://github.com/fairy-root/ComfyUI-OpenAI-FM git clone https://github.com/fairy-root/Flux-Prompt-Generator git clone https://github.com/Fannovel16/comfyui_controlnet_aux git clone https://github.com/Fannovel16/ComfyUI-Frame-Interpolation git clone https://github.com/Fannovel16/ComfyUI-Video-Matting git clone https://github.com/FizzleDorf/ComfyUI_FizzNodes git clone https://github.com/Flow-two/ComfyUI-WanStartEndFramesNative git clone https://github.com/fpgaminer/joycaption_comfyui git clone https://github.com/FunnyFinger/ComfyUi-RadarWeightNode git clone https://github.com/glifxyz/ComfyUI-GlifNodes git clone https://github.com/Goktug/ComfyUi_NNLatentUpscale git clone https://github.com/Goktug/comfyui-saveimage-plus git clone https://github.com/Gourieff/ComfyUI-ReActor git clone https://github.com/GrailGreg/images_base64 git clone https://github.com/huchenlei/ComfyUI-IC-Light-Native git clone https://github.com/huchenlei/ComfyUI-layerdiffuse git clone https://github.com/huchenlei/ComfyUI-openpose-editor git clone https://github.com/jags111/efficiency-nodes-comfyui git clone https://github.com/jamesWalker55/comfyui-various git clone https://github.com/jax-explorer/ComfyUI-VideoBasic git clone https://github.com/john-mnz/ComfyUI-Inspyrenet-Rembg git clone https://github.com/Jonseed/ComfyUI-Detail-Daemon git clone https://github.com/kaibioinfo/ComfyUI_AdvancedRefluxControl git clone https://github.com/kijai/ComfyUI-DepthAnythingV2 git clone https://github.com/kijai/ComfyUI-Florence2 git clone https://github.com/kijai/ComfyUI-GIMM-VFI git clone https://github.com/kijai/ComfyUI-HunyuanVideoWrapper git clone https://github.com/kijai/ComfyUI-IC-Light git clone https://github.com/kijai/ComfyUI-KJNodes git clone https://github.com/kijai/ComfyUI-Marigold git clone https://github.com/kijai/ComfyUI-WanVideoWrapper git clone https://github.com/Kosinkadink/ComfyUI-Advanced-ControlNet git clone https://github.com/Kosinkadink/ComfyUI-AnimateDiff-Evolved git clone https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite git clone https://github.com/LAOGOU-666/Comfyui_LG_Tools git clone https://github.com/Layer-norm/comfyui-lama-remover git clone https://github.com/Lightricks/ComfyUI-LTXVideo git clone https://github.com/lldacing/ComfyUI_Patches_ll git clone https://github.com/lldacing/ComfyUI_PuLID_Flux_ll git clone https://github.com/Loewen-Hob/rembg-comfyui-node-better git clone https://github.com/lquesada/ComfyUI-Inpaint-CropAndStitch git clone https://github.com/lrzjason/Comfyui-In-Context-Lora-Utils git clone https://github.com/ltdrdata/ComfyUI-Impact-Pack git clone https://github.com/ltdrdata/ComfyUI-Impact-Subpack git clone https://github.com/ltdrdata/ComfyUI-Inspire-Pack git clone https://github.com/ltdrdata/ComfyUI-Manager git clone https://github.com/ltdrdata/was-node-suite-comfyui git clone https://github.com/M1kep/ComfyLiterals git clone https://github.com/melMass/comfy_mtb git clone https://github.com/melMass/comfy_mtb git clone https://github.com/mingsky-ai/ComfyUI-MingNodes git clone https://github.com/neverbiasu/ComfyUI-SAM2 git clone https://github.com/nullquant/ComfyUI-BrushNet git clone https://github.com/orssorbit/ComfyUI-wanBlockswap git clone https://github.com/PressWagon/ComfyUI-StringsAndThings git clone https://github.com/pythongosssss/ComfyUI-Custom-Scripts git clone https://github.com/pythongosssss/ComfyUI-WD14-Tagger git clone https://github.com/raindrop313/ComfyUI-WanVideoStartEndFrames git clone https://github.com/shadowcz007/comfyui-mixlab-nodes git clone https://github.com/Shakker-Labs/ComfyUI-IPAdapter-Flux git clone https://github.com/sipherxyz/comfyui-art-venture git clone https://github.com/smthemex/ComfyUI_Pops git clone https://github.com/smthemex/ComfyUI_Sonic git clone https://github.com/smthemex/ComfyUI_YuE git clone https://github.com/ssitu/ComfyUI_UltimateSDUpscale git clone https://github.com/Stability-AI/stability-ComfyUI-nodes git clone https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes git clone https://github.com/talesofai/comfyui-browser git clone https://github.com/TFL-TFL/ComfyUI_Text_Translation git clone https://github.com/TheMistoAI/ComfyUI-Anyline git clone https://github.com/Tropfchen/ComfyUI-Embedding_Picker git clone https://github.com/TTPlanetPig/Comfyui_TTP_Toolset git clone https://github.com/un-seen/comfyui-tensorops git clone https://github.com/VAST-AI-Research/ComfyUI-Tripo git clone https://github.com/WaveSpeedAI/wavespeed-comfyui git clone https://github.com/welltop-cn/ComfyUI-TeaCache git clone https://github.com/xhiroga/ComfyUI-FramePackWrapper_PlusOne git clone https://github.com/XLabs-AI/x-flux-comfyui git clone https://github.com/yolain/ComfyUI-Easy-Use # 批量安装插件依赖 find /workspace/custom_nodes -name requirements.txt -exec pip install -r {} \; # 重新安装ComfyUI依赖 pip install -r /workspace/comfyui/requirements.txt # 链接插件目录到ComfyUI目录 rm -r /workspace/comfyui/custom_nodes ln -s /workspace/custom_nodes /workspace/comfyui/ # 启动ComfyUI看看还缺什么依赖或哪些依赖存在冲突,手工处理一下!!! /workspace/venv/bin/python /workspace/comfyui/main.py --listen --auto-launch
其他插件:
# 启动较慢插件 git clone https://github.com/billwuhao/ComfyUI_PortraitTools # UI类插件 git clone https://github.com/rgthree/rgthree-comfy # 会生成独立按钮的插件 git clone https://github.com/ainewsto/Comfyui_Comfly git clone https://github.com/bytedance/comfyui-lumi-batcher # python3.12暂不支持的插件 git clone https://github.com/kijai/ComfyUI-SUPIR git clone https://github.com/chflame163/ComfyUI_WordCloud git clone https://github.com/ZHO-ZHO-ZHO/ComfyUI-YoloWorld-EfficientSAM git clone https://github.com/filliptm/ComfyUI_Fill-Nodes git clone https://github.com/AlekPet/ComfyUI_Custom_Nodes_AlekPet # 部分支持