参数名称类型默认值描述
--listenstr127.0.0.1指定监听的 IP 地址。
--portint8188设置监听端口。
--tls-keyfilestrTLS (SSL) 密钥文件的路径,启用 TLS。
--tls-certfilestrTLS (SSL) 证书文件的路径,启用 TLS。
--enable-cors-headerstrNone启用 CORS (跨域资源共享),可选源或允许所有源。
--max-upload-sizefloat100设置最大上传大小(MB)。
--extra-model-paths-configstrNone加载一个或多个 extra_model_paths.yaml 文件。
--output-directorystrNone设置 ComfyUI 输出目录。
--preview-methodLatentPreviewMethodLatentPreviewMethod.NoPreviews默认的预览方法。
--preview-sizeint512设置采样节点的最大预览大小。
--front-end-rootstrNone前端根目录的路径。
--disable-auto-launchstore_true禁用自动启动浏览器。
--cuda-deviceintNone设置此实例将使用的 CUDA 设备 ID。
--cuda-mallocstore_true启用 cudaMallocAsync(默认启用)。
--disable-cuda-mallocstore_true禁用 cudaMallocAsync
--force-fp32store_true强制使用 fp32。
--force-fp16store_true强制使用 fp16。
--fp32-unetstore_true在 fp32 中运行扩散模型。
--fp64-unetstore_true在 fp64 中运行扩散模型。
--bf16-unetstore_true在 bf16 中运行扩散模型。
--fp16-unetstore_true在 fp16 中运行扩散模型。
--fp8_e4m3fn-unetstore_true在 fp8_e4m3fn 中存储 unet 权重。
--fp8_e5m2-unetstore_true在 fp8_e5m2 中存储 unet 权重。
--fp16-vaestore_true在 fp16 中运行 VAE,可能导致黑色图像。
--fp32-vaestore_true在全精度 fp32 中运行 VAE。
--bf16-vaestore_true在 bf16 中运行 VAE。
--cpu-vaestore_true在 CPU 上运行 VAE。
--fp8_e4m3fn-text-encstore_true在 fp8 中存储文本编码器权重(e4m3fn 变体)。
--fp8_e5m2-text-encstore_true在 fp8 中存储文本编码器权重(e5m2 变体)。
--fp16-text-encstore_true在 fp16 中存储文本编码器权重。
--fp32-text-encstore_true在 fp32 中存储文本编码器权重。
--cache-lruint0使用 LRU 缓存,最多缓存 N 个节点结果。
--use-split-cross-attentionstore_true使用分割交叉注意力优化。
--use-quad-cross-attentionstore_true使用子二次交叉注意力优化。
--use-pytorch-cross-attentionstore_true使用新的 PyTorch 2.0 交叉注意力函数。
--use-sage-attentionstore_true使用 Sage 注意力。
--disable-xformersstore_true禁用 xformers。
--force-upcast-attentionstore_true强制启用注意力上升。
--dont-upcast-attentionstore_true禁用所有注意力上升。
--gpu-onlystore_true在 GPU 上存储和运行所有内容。
--highvramstore_true默认情况下,模型将在使用后卸载到 CPU 内存。此选项保持它们在 GPU 内存中。
--normalvramstore_true如果低内存自动启用,则强制使用正常内存。
--lowvramstore_true将 unet 拆分为多个部分以使用更少的内存。
--novramstore_true当低内存不足时使用。
--cpustore_true使用 CPU 处理所有内容(较慢)。
--reserve-vramfloatNone设置希望保留给操作系统/其他软件使用的内存量(GB)。
--default-hashing-functionstrsha256选择用于重复文件名/内容比较的哈希函数。默认是 sha256。