> For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.

# 收缩模型UNET（Kohya Deep Shrink）（PatchModelAddDownscale）

<div class="node-meta"><code>PatchModelAddDownscale</code><span>model/patch/unet</span><span>角色：模型补丁</span><span class="star">★ 常用节点</span></div>

PatchModelAddDownscale (Kohya Deep Shrink) 通过在选择的目标块处缩小中间特征，然后将其缩放回原始尺寸，从而将 Kohya Deep Shrink 技术应用于模型。缩小仅发生在去噪过程的选定阶段，这可以降低处理成本，同时使最终结果接近原始结果。

## 参数

| 参数                     | 类型           | 默认 / 范围                                    | 说明                                       |
| ---------------------- | ------------ | ------------------------------------------ | ---------------------------------------- |
| `model`                | MODEL · 扩散模型 | —（连线输入）                                    | 已应用降采样补丁的修改后模型                           |
| `block_number`         | INT          | 1 \~ 32                                    | —                                        |
| `downscale_factor`     | FLOAT        | 0.1 \~ 9.0，步长 0.001                        | —                                        |
| `start_percent`        | FLOAT        | 0.0 \~ 1.0，步长 0.001                        | 从采样进度的该比例开始生效，0 为起点。                     |
| `end_percent`          | FLOAT        | 0.0 \~ 1.0，步长 0.001                        | 到该比例停止生效，1 为终点。                          |
| `downscale_after_skip` | BOOLEAN · 布尔 | true / false                               | —                                        |
| `downscale_method`     | COMBO        | bicubic、nearest-exact、bilinear、area …共 5 项 | —                                        |
| `upscale_method`       | COMBO        | bicubic、nearest-exact、bilinear、area …共 5 项 | nearest-exact 最快、lanczos 最锐、bicubic 最均衡。 |

## 输出

| 输出    | 类型    | 说明   |
| ----- | ----- | ---- |
| MODEL | MODEL | 扩散模型 |

## 怎么接

- **上游**：CheckpointLoaderSimple / UNETLoader
- **下游**：KSampler / 下一个补丁节点
- **接线**：串在模型链中间：上游接 CheckpointLoaderSimple / UNETLoader 的 MODEL，输出接 KSampler 的 `model` 或下一个补丁；多个补丁叠加时顺序会改变结果。

## 使用案例

属于「模型补丁」类节点，向下游提供可采样的模型对象。从 `model`、`block_number`（3）、`downscale_factor`（2.0） 开始填就能跑起来。典型接法：`CheckpointLoaderSimple` → 本节点 → `KSampler`。注意：补丁节点按「加载器 → 补丁 → 采样器」的顺序串接，顺序不同效果不同。

## 端口与连线示意

![PatchModelAddDownscale 端口与连线示意](/svg/PatchModelAddDownscale.svg)

## 实战提示

- 补丁节点按「加载器 → 补丁 → 采样器」的顺序串接，顺序不同效果不同。

## 同类节点

\[Epsilon缩放]\(/nodes/01/Epsilon Scaling) · [FreeU](/nodes/01/FreeU.md) · [FreeU_V2](/nodes/01/FreeU_V2.md) · [超分块HyperTile](/nodes/01/HyperTile.md) · [PAG注意力引导](/nodes/01/PerturbedAttentionGuidance.md) · [Tome合并模型Token](/nodes/01/TomePatchModel.md) · [TSR - 时序分数重缩放](/nodes/01/TemporalScoreRescaling.md)
