> ## Documentation Index
> Fetch the complete documentation index at: https://docs.comfy.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Comfy Desktop 中的构建文件夹：模型、输入、输出和云存储

> 让 Comfy Desktop 构建使用自己的或共享的模型、输入和输出文件夹，并为远程构建和 Comfy Cloud 构建设置浏览器缓存和输出下载。

本页介绍构建页面上的**文件夹**标签页。安装、添加或连接构建的方法请参阅[构建](https://docs.comfy.org/zh/installation/desktop/usage/instance-management.md)。

## 选择该构建使用哪些文件夹

构建页面上的 **Folders** 标签页用于设置构建在哪里查找模型、从哪里读取输入以及把输出保存到哪里。它包含三个部分：**Models**、**Input** 和 **Output**。默认情况下，这三者都使用 **桌面设置** 中的共享文件夹。

![Standalone 构建的 Folders 选项卡，带编号：1 Include shared directories，2 Add models folder，3 Use shared input，4 Use shared output](https://mintcdn.com/dripart/9B5KNlbcvxyUwmr7/images/desktop/usage/comfy-desktop-folders.png?fit=max\&auto=format\&n=9B5KNlbcvxyUwmr7\&q=85\&s=162585c73c827165496b6e3b0bbb1de0)

1. **Include shared directories**：为这个构建开启或关闭共享模型文件夹。
2. **Add models folder**：添加只给这个构建用的文件夹。
3. **Use shared input**：从共享 input 文件夹读取输入。
4. **Use shared output**：把输出保存到共享 output 文件夹。

* **Models**：**Include shared directories** 用于为此构建开启或关闭共享模型文件夹。列表会显示：
  * 共享文件夹，带有 **Shared** 标签。
  * 构建自身的模型文件夹，带有 **Build** 标签。构建始终会使用它。
  * 仅为此构建添加的文件夹，通过 **Add models folder** 添加。
  * 当构建拥有 `extra_model_paths.yaml` 文件时，会显示一行带有 **YAML** 标签的条目。
* **Input**：开启 **Use shared input** 后，构建会从共享输入文件夹读取输入。关闭它则使用构建自身的输入文件夹。
* **Output**：开启 **Use shared output** 后，构建会把输出保存到共享输出文件夹。关闭它则使用构建自身的输出文件夹。

在 **Models** 列表中：

* 带有 **Downloads** 标签的文件夹会接收新下载的模型。
* 文件夹的菜单中提供它允许的操作，例如 **Use for model downloads**、**Change folder** 或 **Remove**。
* 在共享文件夹上，选择 **Manage shared directories in Desktop settings** 可更改共享文件夹。

点击 **YAML** 行会打开 **Custom model paths**，这是 `extra_model_paths.yaml` 所添加文件夹的只读列表。要更改这些文件夹：

1. 在 **Custom model paths** 中，点击 **Show extra\_model\_paths.yaml** 以定位该文件。
2. 编辑并保存该文件。
3. 点击 **Refresh status**。

更改之后，该标签页会显示 **Restart the application (or close and reopen) for these changes to take effect.**

### 为远程构建和 Comfy Cloud 构建设置输出选项

远程构建的 **Startup arguments** 标签页和 Comfy Cloud 构建的 **Storage** 标签页包含以下设置：

![Comfy Cloud 构建的 Folders 标签页：Browser cache 设置为 Shared，Auto-download outputs 已开启，Use shared output directory 已开启，右上角有 Open Cloud](https://mintcdn.com/dripart/HtsWGj9PL-oHaM8n/images/desktop/usage/comfy-desktop-cloud-storage.png?fit=max\&auto=format\&n=HtsWGj9PL-oHaM8n\&q=85\&s=74e167e3b5fd088d740bbb214ebb3b59)

* **Browser cache**：默认为 **Shared**，也可以设为 **Unique to this build**。
* **Auto-download outputs**：默认开启。它会把每次运行的输出下载到这台计算机上。
* **Use shared output directory**：在 **Auto-download outputs** 开启时显示，用于把输出保存到共享输出文件夹。若要为此构建指定文件夹，请将其关闭。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.