> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-docs-recommend-assets-api.mintlify.site/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.

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

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

## 输入参数

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

## 输出结果

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