diff --git a/images/desktop/extra_model_paths.jpg b/images/desktop/extra_model_paths.jpg new file mode 100644 index 00000000..61400eba Binary files /dev/null and b/images/desktop/extra_model_paths.jpg differ diff --git a/images/zh/desktop/extra_model_paths.jpg b/images/zh/desktop/extra_model_paths.jpg new file mode 100644 index 00000000..d2f84f47 Binary files /dev/null and b/images/zh/desktop/extra_model_paths.jpg differ diff --git a/installation/comfyui_portable_windows.mdx b/installation/comfyui_portable_windows.mdx index d57c29f1..2a6d86ef 100644 --- a/installation/comfyui_portable_windows.mdx +++ b/installation/comfyui_portable_windows.mdx @@ -6,6 +6,7 @@ sidebarTitle: "Portable(Windows)" --- import FirstGeneration from "/snippets/install/first-generation.mdx" +import AddExternalModels from "/snippets/install/add-external-models.mdx" **ComfyUI Portable** is a standalone packaged complete ComfyUI Windows version that has integrated an independent **Python (python_embeded)** required for ComfyUI to run. You only need to extract it to use it. Currently, the portable version supports running through **Nvidia GPU** or **CPU**. @@ -48,6 +49,8 @@ At this point, your ComfyUI service has started. Normally, ComfyUI will automati During use, please do not close the corresponding command line window, otherwise ComfyUI will stop running + + ## Additional ComfyUI Portable Instructions @@ -64,91 +67,8 @@ ComfyUI_windows_portable ├── update_comfyui_and_python_dependencies.bat // Only use when you have issues with your runtime environment └── update_comfyui_stable.bat // Update ComfyUI to the latest stable version ``` -### 2. ComfyUI Model Sharing and Custom Model Directory Configuration - -If you are also using [A1111](https://github.com/AUTOMATIC1111/stable-diffusion-webui) or want to customize your model storage location, you can modify the following file to complete the configuration -``` -ComfyUI_windows_portable -└─ 📂ComfyUI - └── extra_model_paths.yaml.example // This file is the configuration template -``` - -Please copy and rename the `extra_model_paths.yaml.example` to `extra_model_paths.yaml`. - -Below is the original configuration file content, which you can modify according to your needs - -```yaml -#Rename this to extra_model_paths.yaml and ComfyUI will load it - - -#config for a1111 ui -#all you have to do is change the base_path to where yours is installed -a111: - base_path: path/to/stable-diffusion-webui/ - - checkpoints: models/Stable-diffusion - configs: models/Stable-diffusion - vae: models/VAE - loras: | - models/Lora - models/LyCORIS - upscale_models: | - models/ESRGAN - models/RealESRGAN - models/SwinIR - embeddings: embeddings - hypernetworks: models/hypernetworks - controlnet: models/ControlNet - -#config for comfyui -#your base path should be either an existing comfy install or a central folder where you store all of your models, loras, etc. - -#comfyui: -# base_path: path/to/comfyui/ -# # You can use is_default to mark that these folders should be listed first, and used as the default dirs for eg downloads -# #is_default: true -# checkpoints: models/checkpoints/ -# clip: models/clip/ -# clip_vision: models/clip_vision/ -# configs: models/configs/ -# controlnet: models/controlnet/ -# diffusion_models: | -# models/diffusion_models -# models/unet -# embeddings: models/embeddings/ -# loras: models/loras/ -# upscale_models: models/upscale_models/ -# vae: models/vae/ - -#other_ui: -# base_path: path/to/ui -# checkpoints: models/checkpoints -# gligen: models/gligen -# custom_nodes: path/custom_nodes - -``` - -For example, if your WebUI is located at `D:\stable-diffusion-webui\`, you can modify the corresponding configuration to -```yaml -a111: - base_path: D:\stable-diffusion-webui\ - checkpoints: models/Stable-diffusion - configs: models/Stable-diffusion - vae: models/VAE - loras: | - models/Lora - models/LyCORIS - upscale_models: | - models/ESRGAN - models/RealESRGAN - models/SwinIR - embeddings: embeddings - hypernetworks: models/hypernetworks - controlnet: models/ControlNet -``` -This way, models under paths like `D:\stable-diffusion-webui\models\Stable-diffusion\` can be detected and used by ComfyUI. Similarly, you can add other custom model location configurations -### 3. Setting Up LAN Access for ComfyUI Portable +### 2. Setting Up LAN Access for ComfyUI Portable If your ComfyUI is running on a local network and you want other devices to access ComfyUI, you can modify the `run_nvidia_gpu.bat` or `run_cpu.bat` file using Notepad to complete the configuration. This is mainly done by adding `--listen` to specify the listening address. Below is an example of the `run_nvidia_gpu.bat` file command with the `--listen` parameter added diff --git a/installation/desktop/macos.mdx b/installation/desktop/macos.mdx index 7238335f..36d8f759 100644 --- a/installation/desktop/macos.mdx +++ b/installation/desktop/macos.mdx @@ -13,6 +13,7 @@ import TroubleshootingGpt from "/snippets/install/troubleshooting-gpt.mdx" import TroubleshootingFeedback from "/snippets/install/troubleshooting-feedback.mdx" import ExternalModelsDesktop from "/snippets/install/external-models-desktop.mdx" import DesktopVenv from "/snippets/install/desktop-venv.mdx" +import AddExternalModels from "/snippets/install/add-external-models.mdx" **ComfyUI Desktop** is a standalone installation version that can be installed like regular software. It supports quick installation and automatic configuration of the **Python environment and dependencies**, and supports one-click import of existing ComfyUI settings, models, workflows, and files. @@ -127,7 +128,7 @@ Then find the **ComfyUI icon** in **Launchpad** and click it to enter ComfyUI in - + ## How to Uninstall ComfyUI Desktop diff --git a/installation/desktop/windows.mdx b/installation/desktop/windows.mdx index 42558d04..e003c9f0 100644 --- a/installation/desktop/windows.mdx +++ b/installation/desktop/windows.mdx @@ -13,6 +13,7 @@ import TroubleshootingGpt from "/snippets/install/troubleshooting-gpt.mdx" import TroubleshootingFeedback from "/snippets/install/troubleshooting-feedback.mdx" import ExternalModelsDesktop from "/snippets/install/external-models-desktop.mdx" import DesktopVenv from "/snippets/install/desktop-venv.mdx" +import AddExternalModels from "/snippets/install/add-external-models.mdx" **ComfyUI Desktop** is a standalone installation version that can be installed like regular software. It supports quick installation and automatic configuration of the **Python environment and dependencies**, and supports one-click import of existing ComfyUI settings, models, workflows, and files. You can quickly migrate from an existing [ComfyUI Portable version](/installation/comfyui_portable_windows) to the Desktop version. @@ -118,7 +119,7 @@ Double-click the corresponding shortcut to enter ComfyUI initialization settings - + ## How to Uninstall ComfyUI Desktop diff --git a/installation/manual_install.mdx b/installation/manual_install.mdx index 9b43fa8e..572574fe 100644 --- a/installation/manual_install.mdx +++ b/installation/manual_install.mdx @@ -10,6 +10,7 @@ import Conda from "/snippets/conda.mdx"; import PipInstall from "/snippets/pip-install.mdx"; import InstallGpuDependencies from "/snippets/install-gpu-dependencies.mdx"; import RunComfy from "/snippets/run-comfy.mdx"; +import AddExternalModels from "/snippets/install/add-external-models.mdx" For the installation of ComfyUI, it is mainly divided into several steps: 1. Create a virtual environment(avoid polluting the system-level Python environment) @@ -80,3 +81,5 @@ git clone git@github.com:comfyanonymous/ComfyUI.git ``` + + \ No newline at end of file diff --git a/snippets/install/add-external-models.mdx b/snippets/install/add-external-models.mdx index ac7c8a6f..f313fbe0 100644 --- a/snippets/install/add-external-models.mdx +++ b/snippets/install/add-external-models.mdx @@ -1,46 +1,160 @@ -### Adding External Model Paths +## Adding Extra Model Paths -If you downloaded a model but ComfyUI cannot find it, you may need to add an additional model search path to the yaml file. +If you want to manage your model files outside of `ComfyUI/models`, you may have the following reasons: -#### Example scenario -You need to add a motion LoRA and your model is located in `C:\Users\YourUsername\models\animatediff_motion_lora`. +- You have multiple ComfyUI instances and want them to share model files to save disk space +- You have different types of GUI programs (such as WebUI) and want them to use the same model files +- Model files cannot be recognized or found -#### Solution -1. Add the below configuration to the `extra_model_paths.yaml` file using the correct model type property name -2. Restart ComfyUI +We provide a way to add extra model search paths via the `extra_model_paths.yaml` configuration file + +### Open Config File + + + + For the ComfyUI version such as [portable](/installation/comfyui_portable_windows) and [manual](/installation/manual_install), you can find an example file named `extra_model_paths.yaml.example` in the root directory of ComfyUI: + ``` + ComfyUI/extra_model_paths.yaml.example + ``` + + Copy and rename it to `extra_model_paths.yaml` for use. Keep it in ComfyUI's root directory at `ComfyUI/extra_model_paths.yaml`. + You can also find the config example file [here](https://github.com/comfyanonymous/ComfyUI/blob/master/extra_model_paths.yaml.example) + + + + If you are using the [ComfyUI Desktop](/installation/desktop/windows) application, you can follow the image below to open the extra model config file: + + ![Open Config File](/images/desktop/extra_model_paths.jpg) + + Or open it directly at: + + + + ``` + C:\Users\YourUsername\AppData\Roaming\ComfyUI\extra_models_config.yaml + ``` + + + ``` + ~/Library/Application Support/ComfyUI/extra_models_config.yaml + ``` + + + + You should keep the file in the same directory, should not move these files to other places. + + + +If the file does not exist, you can create it yourself with any text editor. + +### Example Structure + +Suppose you want to add the following model paths to ComfyUI: -```yaml -my_custom_config: - loras: C:\Users\YourUsername\models\animatediff_motion_lora/ +``` +📁 your_path/ + ├── 📁models/ + | ├── 📁 lora/ + | │ └── xxxxx.safetensors + | ├── 📁 checkpoints/ + | │ └── xxxxx.safetensors + | ├── 📁 vae/ + | │ └── xxxxx.safetensors + | └── 📁 controlnet/ + | └── xxxxx.safetensors ``` -**Important:** Use the correct property names for different model types: -- `loras` - for LoRA models -- `checkpoints` - for checkpoint models -- `vae` - for VAE models -- `controlnet` - for ControlNet models -- `clip` - for CLIP models -- `upscale_models` - for upscaling models -- `embeddings` - for textual inversion embeddings -- `configs` - for configuration files +Then you can configure the `extra_model_paths.yaml` file like below to let ComfyUI recognize the model paths on your device: -For example, to add checkpoint models: -```yaml +``` my_custom_config: - checkpoints: C:\Users\YourUsername\models\checkpoints/ + base_path: your_path + loras: models/loras/ + checkpoints: models/checkpoints/ + vae: models/vae/ + controlnet: models/controlnet/ ``` +or + +``` +my_custom_config: + base_path: your_path/models/ + loras: loras + checkpoints: checkpoints + vae: vae + controlnet: controlnet +``` + +Or you can refer to the default [extra_model_paths.yaml.example](https://github.com/comfyanonymous/ComfyUI/blob/master/extra_model_paths.yaml.example) for more configuration options. After saving, you need to **restart ComfyUI** for the changes to take effect. + +Below is the original config example: + +```yaml +#Rename this to extra_model_paths.yaml and ComfyUI will load it -#### YAML config file location -For standard ComfyUI installations, create the `extra_model_paths.yaml` file directly in your ComfyUI folder (where `main.py` is located). -#### Desktop Application Instructions -If you're using the ComfyUI Desktop application, the config file has a different name and location: +#config for a1111 ui +#all you have to do is change the base_path to where yours is installed +a111: + base_path: path/to/stable-diffusion-webui/ -- On Windows: `C:\Users\YourUsername\AppData\Roaming\ComfyUI\extra_models_config.yaml` - - You can quickly navigate to this by typing `%APPDATA%\ComfyUI` in File Explorer address bar -- On macOS: `~/Library/Application Support/ComfyUI/extra_models_config.yaml` - - Open Finder, press `Cmd+Shift+G` and enter `~/Library/Application Support/ComfyUI` -- On Linux: `~/.config/ComfyUI/extra_models_config.yaml` - - Open your file manager and navigate to the hidden folder `~/.config/ComfyUI` + checkpoints: models/Stable-diffusion + configs: models/Stable-diffusion + vae: models/VAE + loras: | + models/Lora + models/LyCORIS + upscale_models: | + models/ESRGAN + models/RealESRGAN + models/SwinIR + embeddings: embeddings + hypernetworks: models/hypernetworks + controlnet: models/ControlNet -If the file doesn't exist yet, you can create it yourself with any text editor. +#config for comfyui +#your base path should be either an existing comfy install or a central folder where you store all of your models, loras, etc. + +#comfyui: +# base_path: path/to/comfyui/ +# # You can use is_default to mark that these folders should be listed first, and used as the default dirs for eg downloads +# #is_default: true +# checkpoints: models/checkpoints/ +# clip: models/clip/ +# clip_vision: models/clip_vision/ +# configs: models/configs/ +# controlnet: models/controlnet/ +# diffusion_models: | +# models/diffusion_models +# models/unet +# embeddings: models/embeddings/ +# loras: models/loras/ +# upscale_models: models/upscale_models/ +# vae: models/vae/ + +#other_ui: +# base_path: path/to/ui +# checkpoints: models/checkpoints +# gligen: models/gligen +# custom_nodes: path/custom_nodes + +``` + +For example, if your WebUI is located at `D:\stable-diffusion-webui\`, you can modify the corresponding configuration to +```yaml +a111: + base_path: D:\stable-diffusion-webui\ + checkpoints: models/Stable-diffusion + configs: models/Stable-diffusion + vae: models/VAE + loras: | + models/Lora + models/LyCORIS + upscale_models: | + models/ESRGAN + models/RealESRGAN + models/SwinIR + embeddings: embeddings + hypernetworks: models/hypernetworks + controlnet: models/ControlNet +``` diff --git a/snippets/zh/install/add-external-models.mdx b/snippets/zh/install/add-external-models.mdx index c387e93e..da9af849 100644 --- a/snippets/zh/install/add-external-models.mdx +++ b/snippets/zh/install/add-external-models.mdx @@ -1,46 +1,139 @@ -### 添加外部模型路径 +## 添加外部模型路径 -如果你下载了模型但 ComfyUI 无法找到它,你可能需要在 yaml 文件中添加额外的模型搜索路径。 +如果你想要在 `ComfyUI/models` 之外管理你的模型文件,可能出于以下原因: -#### 示例场景 -你需要添加一个动态 LoRA,你的模型位于 `C:\Users\YourUsername\models\animatediff_motion_lora`。 +- 你有多个 ComfyUI 实例,你想要让这些实例共享模型文件,从而减少磁盘占用 +- 你有多个不同的类型的 GUI 程序,如:WebUI, 你想要他们共用模型文件 +- 模型文件无法被识别或读取到 -#### 解决方案 -1. 使用正确的模型类型属性名称在 `extra_model_paths.yaml` 文件中添加以下配置 -2. 重启 ComfyUI +我们提供了通过 `extra_model_paths.yaml` 配置文件来添加额外模型搜索路径的方法。 -```yaml +### 不同 ComfyUI 版本配置文件位置 + + + + 对于[便携版](/zh-CN/installation/comfyui_portable_windows)和[手动安装](/zh-CN/installation/manual_install)的 ComfyUI版本,你可以在 ComfyUI 的根目录下找到 `extra_model_paths.yaml.example` 的示例文件 + ``` + ComfyUI/extra_model_paths.yaml.example + ``` + 复制并重命名为 `extra_model_paths.yaml` 来使用, 并保持在 ComfyUI 的根目录下, 路径应该是 `ComfyUI/extra_model_paths.yaml` + + 你也可以在 [这里](https://github.com/comfyanonymous/ComfyUI/blob/master/extra_model_paths.yaml.example) 找到配置示例文件 + + + + 如果你使用的是 ComfyUI 桌面应用程序,你可以参考下图打开额外模型的配置文件: + + ![Open Config File](/images/zh/desktop/extra_model_paths.jpg) + + 或者通过下面的位置打开: + + + + ``` + C:\Users\YourUsername\AppData\Roaming\ComfyUI\extra_models_config.yaml + ``` + + + ``` + ~/Library/Application Support/ComfyUI/extra_models_config.yaml + ``` + + + + 对应的配置文件不应该被改变 + + + +### 配置示例 + +比如,你需要额外让 ComfyUI 识别的模型文件位于下面的文件夹: + +``` +📁 your_path/ + ├── 📁models/ + | ├── 📁 loras/ + | │ └── xxxxx.safetensors + | ├── 📁 checkpoints/ + | │ └── xxxxx.safetensors + | ├── 📁 vae/ + | │ └── xxxxx.safetensors + | └── 📁 controlnet/ + | └── xxxxx.safetensors +``` + +那么你可以进行如下的配置来让 ComfyUI 识别到你设备上的模型路径 + +``` my_custom_config: - loras: C:\Users\YourUsername\models\animatediff_motion_lora/ + base_path: your_path + loras: models/loras/ + checkpoints: models/checkpoints/ + vae: models/vae/ + controlnet: models/controlnet/ ``` -**重要提示:** 针对不同模型类型使用正确的属性名称: -- `loras` - 用于 LoRA 模型 -- `checkpoints` - 用于 Checkpoints 模型 -- `vae` - 用于 VAE 模型 -- `controlnet` - 用于 ControlNet 模型 -- `clip` - 用于 CLIP 模型 -- `upscale_models` - 用于放大模型 -- `embeddings` - 用于文本反转嵌入 -- `configs` - 用于配置文件 - -例如,添加检查点模型: -```yaml +或者使用 +``` my_custom_config: - checkpoints: C:\Users\YourUsername\models\checkpoints/ + base_path: your_path/models/ + loras: loras + checkpoints: checkpoints + vae: vae + controlnet: controlnet ``` -#### YAML 配置文件位置 -对于标准 ComfyUI 安装,请直接在 ComfyUI 文件夹(`main.py` 所在的位置)中创建 `extra_model_paths.yaml` 文件。 +或者你也可以参考默认的 [extra_model_paths.yaml.example](https://github.com/comfyanonymous/ComfyUI/blob/master/extra_model_paths.yaml.example) 来配置,保存之后, 需要 **重启 ComfyUI** 才能生效。 + +下面是完整的原始的配置配置示例: + +```yaml +#Rename this to extra_model_paths.yaml and ComfyUI will load it + + +#config for a1111 ui +#all you have to do is change the base_path to where yours is installed +a111: + base_path: path/to/stable-diffusion-webui/ + + checkpoints: models/Stable-diffusion + configs: models/Stable-diffusion + vae: models/VAE + loras: | + models/Lora + models/LyCORIS + upscale_models: | + models/ESRGAN + models/RealESRGAN + models/SwinIR + embeddings: embeddings + hypernetworks: models/hypernetworks + controlnet: models/ControlNet + +#config for comfyui +#your base path should be either an existing comfy install or a central folder where you store all of your models, loras, etc. -#### 桌面应用程序说明 -如果你使用的是 ComfyUI 桌面应用程序,配置文件的名称和位置都不同: +#comfyui: +# base_path: path/to/comfyui/ +# # You can use is_default to mark that these folders should be listed first, and used as the default dirs for eg downloads +# #is_default: true +# checkpoints: models/checkpoints/ +# clip: models/clip/ +# clip_vision: models/clip_vision/ +# configs: models/configs/ +# controlnet: models/controlnet/ +# diffusion_models: | +# models/diffusion_models +# models/unet +# embeddings: models/embeddings/ +# loras: models/loras/ +# upscale_models: models/upscale_models/ +# vae: models/vae/ -- Windows:`C:\Users\YourUsername\AppData\Roaming\ComfyUI\extra_models_config.yaml` - - 你可以在文件资源管理器地址栏中输入 `%APPDATA%\ComfyUI` 快速导航到此位置 -- macOS:`~/Library/Application Support/ComfyUI/extra_models_config.yaml` - - 打开 Finder,按 `Cmd+Shift+G` 并输入 `~/Library/Application Support/ComfyUI` -- Linux:`~/.config/ComfyUI/extra_models_config.yaml` - - 打开文件管理器并导航到隐藏文件夹 `~/.config/ComfyUI` +#other_ui: +# base_path: path/to/ui +# checkpoints: models/checkpoints +# gligen: models/gligen +# custom_nodes: path/custom_nodes -如果该文件尚不存在,你可以使用任何文本编辑器自己创建它。 +``` \ No newline at end of file diff --git a/zh-CN/installation/comfyui_portable_windows.mdx b/zh-CN/installation/comfyui_portable_windows.mdx index 670e6a29..a31eef06 100644 --- a/zh-CN/installation/comfyui_portable_windows.mdx +++ b/zh-CN/installation/comfyui_portable_windows.mdx @@ -5,6 +5,7 @@ icon: "box" --- import FirstGeneration from "/snippets/zh/install/first-generation.mdx" +import AddExternalModels from "/snippets/zh/install/add-external-models.mdx" **ComfyUI Portable(便携版)** 是一个独立封装完整的 ComfyUI Windows 版本,内部已经整合了 ComfyUI 运行所需的独立的 **Python(python_embeded)**,只需要解压即可使用,目前便携版本支持通过 **Nvidia** 显卡或者 **CPU** 运行。 @@ -47,8 +48,11 @@ To see the GUI go to: http://127.0.0.1:8188 使用过程中请不要关闭对应的命令行窗口,否则 ComfyUI 将会停止运行 + + + ## 其它 ComfyUI 便携版相关说明 ### 1. ComfyUI 便携版升级 @@ -64,92 +68,7 @@ ComfyUI_windows_portable └── update_comfyui_stable.bat // 更新 ComfyUI 为最新的 stable 版本 ``` -### 2. ComfyUI 模型共享或自定义模型文件夹存储位置配置 - -如果你同时有使用 [A1111](https://github.com/AUTOMATIC1111/stable-diffusion-webui) 或者想要自定义模型存储位置,你可以通过修改下面的文件来完成配置 -``` -ComfyUI_windows_portable -└─ 📂ComfyUI - └── extra_model_paths.yaml.example // 此文件为配置模板 -``` - -请复制 `extra_model_paths.yaml.example` 并重命名为 `extra_model_paths.yaml` - -下面是对应的原始配置文件内容 - -```yaml -#Rename this to extra_model_paths.yaml and ComfyUI will load it - - -#config for a1111 ui -#all you have to do is change the base_path to where yours is installed -a111: - base_path: path/to/stable-diffusion-webui/ - - checkpoints: models/Stable-diffusion - configs: models/Stable-diffusion - vae: models/VAE - loras: | - models/Lora - models/LyCORIS - upscale_models: | - models/ESRGAN - models/RealESRGAN - models/SwinIR - embeddings: embeddings - hypernetworks: models/hypernetworks - controlnet: models/ControlNet - -#config for comfyui -#your base path should be either an existing comfy install or a central folder where you store all of your models, loras, etc. - -#comfyui: -# base_path: path/to/comfyui/ -# # You can use is_default to mark that these folders should be listed first, and used as the default dirs for eg downloads -# #is_default: true -# checkpoints: models/checkpoints/ -# clip: models/clip/ -# clip_vision: models/clip_vision/ -# configs: models/configs/ -# controlnet: models/controlnet/ -# diffusion_models: | -# models/diffusion_models -# models/unet -# embeddings: models/embeddings/ -# loras: models/loras/ -# upscale_models: models/upscale_models/ -# vae: models/vae/ - -#other_ui: -# base_path: path/to/ui -# checkpoints: models/checkpoints -# gligen: models/gligen -# custom_nodes: path/custom_nodes - -``` - -比如你的 WebUI 位于 `D:\stable-diffusion-webui\ ` 下,你可以修改对应的配置为 - -```yaml -a111: - base_path: D:\stable-diffusion-webui\ - checkpoints: models/Stable-diffusion - configs: models/Stable-diffusion - vae: models/VAE - loras: | - models/Lora - models/LyCORIS - upscale_models: | - models/ESRGAN - models/RealESRGAN - models/SwinIR - embeddings: embeddings - hypernetworks: models/hypernetworks - controlnet: models/ControlNet -``` -这样类似 `D:\stable-diffusion-webui\models\Stable-diffusion\` 下的模型就可以被 ComfyUI 便携版检测到并使用,同样你也可以自定添加其它自定义模型位置配置 - -### 3. ComfyUI 便携版设置局域网访问 +### 2. ComfyUI 便携版设置局域网访问 如果你的 ComfyUI 运行在局域网内,想要其它的设备也可以访问到 ComfyUI,你可以通过记事本修改 `run_nvidia_gpu.bat` 或者 `run_cpu.bat` 文件来完成配置,主要通过添加`--listen`来添加监听地址 下面的示例是添加了 `--listen` 参数的 `run_nvidia_gpu.bat` 文件命令 diff --git a/zh-CN/installation/desktop/macos.mdx b/zh-CN/installation/desktop/macos.mdx index b2db3bf6..11ef9f0b 100644 --- a/zh-CN/installation/desktop/macos.mdx +++ b/zh-CN/installation/desktop/macos.mdx @@ -12,6 +12,7 @@ import TroubleshootingGpt from "/snippets/zh/install/troubleshooting-gpt.mdx" import TroubleshootingFeedback from "/snippets/zh/install/troubleshooting-feedback.mdx" import ExternalModelsDesktop from "/snippets/zh/install/external-models-desktop.mdx" import DesktopVenv from "/snippets/zh/install/desktop-venv.mdx" +import AddExternalModels from "/snippets/zh/install/add-external-models.mdx" **ComfyUI 桌面版(Desktop)** 是一个独立的安装版本,可以像常规软件一样安装,支持快捷安装、自动配置 **Python 环境及依赖**,并支持导入已有的 ComfyUI 设置、模型、工作流和文件。 @@ -114,7 +115,7 @@ brew install comfyui - + ## 如何卸载 ComfyUI 桌面版 diff --git a/zh-CN/installation/desktop/windows.mdx b/zh-CN/installation/desktop/windows.mdx index 30bf19e6..1babea16 100644 --- a/zh-CN/installation/desktop/windows.mdx +++ b/zh-CN/installation/desktop/windows.mdx @@ -12,6 +12,7 @@ import TroubleshootingGpt from "/snippets/zh/install/troubleshooting-gpt.mdx" import TroubleshootingFeedback from "/snippets/zh/install/troubleshooting-feedback.mdx" import ExternalModelsDesktop from "/snippets/zh/install/external-models-desktop.mdx" import DesktopVenv from "/snippets/zh/install/desktop-venv.mdx" +import AddExternalModels from "/snippets/zh/install/add-external-models.mdx" **ComfyUI 桌面版(Desktop)** 是一个独立的安装版本,可以像常规软件一样进行安装,支持快捷安装自动配置 **Python环境及依赖** ,支持导入已有的 ComfyUI 设置、模型、工作流和文件,可以快速从已有的[ComfyUI 便携版](/zh-CN/installation/comfyui_portable_windows)迁移到桌面版 @@ -112,7 +113,7 @@ ComfyUI 桌面版(Windows)硬件要求: - + ## 如何卸载 ComfyUI 桌面版 diff --git a/zh-CN/installation/manual_install.mdx b/zh-CN/installation/manual_install.mdx index 3aa4e8f1..44e79f43 100644 --- a/zh-CN/installation/manual_install.mdx +++ b/zh-CN/installation/manual_install.mdx @@ -10,6 +10,7 @@ import Conda from "/snippets/zh/conda.mdx"; import PipInstall from "/snippets/zh/pip-install.mdx"; import InstallGpuDependencies from "/snippets/zh/install-gpu-dependencies.mdx"; import RunComfy from "/snippets/zh/run-comfy.mdx"; +import AddExternalModels from "/snippets/zh/install/add-external-models.mdx" 对于 ComfyUI 的安装, 主要分为几个步骤 1. 创建一个虚拟环境(避免污染系统级 Python 环境) @@ -79,4 +80,6 @@ git clone git@github.com:comfyanonymous/ComfyUI.git pip install -r requirements.txt ``` - \ No newline at end of file + + + \ No newline at end of file