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

# LossGraphNode - ComfyUI Built-in Node Documentation

> Complete documentation for the LossGraphNode 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/LossGraphNode/en.md)

LossGraphNode 会创建训练损失值随时间变化的可视化图表，并将其显示为预览图像。它从训练过程中获取损失数据，生成折线图，展示损失值随训练步骤的变化趋势。生成的图表包含坐标轴标签以及最小/最大损失值。

## 输入

| 参数      | 描述                                  | 数据类型      | 是否必填 | 范围 |
| ------- | ----------------------------------- | --------- | ---- | -- |
| `损失`    | 来自训练节点的损失映射。                        | LOSS\_MAP | 是    | -  |
| `文件名前缀` | 保存的损失图表图像的文件名前缀。（默认值："loss\_graph"） | STRING    | 是    | -  |

## 输出

| 输出名称        | 描述                 | 数据类型  |
| ----------- | ------------------ | ----- |
| `ui.images` | 生成的损失图表图像，以预览形式显示。 | IMAGE |

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

***

**Source fingerprint (SHA-256):** `9b1c844cb4babafc61102ee7bfd1039c325c6665abff1721d92a6da7d18029f9`
