> ## 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.

# ModelSamplingFlux - ComfyUI Built-in Node Documentation

> Complete documentation for the ModelSamplingFlux node in ComfyUI. Learn its inputs, outputs, parameters and usage.

ModelSamplingFlux 节点通过根据图像尺寸计算偏移参数，将 Flux 模型采样应用于给定模型。它会创建一个专门的采样配置，根据指定的宽度、高度和偏移参数调整模型行为，然后返回应用了新采样设置的修改后模型。

## 输入

| 参数     | 描述                    | 数据类型  | 是否必填 | 范围                   |
| ------ | --------------------- | ----- | ---- | -------------------- |
| `模型`   | 要应用 Flux 采样的模型        | MODEL | 是    | -                    |
| `最大移位` | 采样计算的最大偏移值（默认值：1.15）  | FLOAT | 是    | 0.0 - 100.0          |
| `基础移位` | 采样计算的基准偏移值（默认值：0.5）   | FLOAT | 是    | 0.0 - 100.0          |
| `宽度`   | 目标图像的宽度（像素）（默认值：1024） | INT   | 是    | 16 - MAX\_RESOLUTION |
| `高度`   | 目标图像的高度（像素）（默认值：1024） | INT   | 是    | 16 - MAX\_RESOLUTION |

## 输出

| 输出名称 | 描述                  | 数据类型  |
| ---- | ------------------- | ----- |
| `模型` | 已应用 Flux 采样配置的修改后模型 | MODEL |

> 本文档由 AI 生成。如果您发现任何错误或有改进建议，欢迎贡献！ [在 GitHub 上编辑](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/ModelSamplingFlux/zh.md)

***

**Source fingerprint (SHA-256):** `35733ab0cd032884ceada13715cf51e626586844e8e575471a5ba7cf8a1e5e49`
