FLUX Trainer Workflow — v2.0
Fix Flux-Trainer VisualizeLoss can't record global loss bug. v1.0 workflow just show current loop loss and can't auto flash loss data, so it always show first loop loss.
Runtime profile
- Access
- External workflow
- Status
- Listed
- Version
- flux-lora-training.json
- Source
- Civitai
- Updated
- Oct 18, 2026
Source description
Fix Flux-Trainer VisualizeLoss can't record global loss bug. v1.0 workflow just show current loop loss and can't auto flash loss data, so it always show first loop loss.
v2.0 workflow fix this problem. But you should modify Flux-Trainer code.
class VisualizeLoss: @classmethod
...
change output types
RETURN_TYPES = ("NETWORKTRAINER", "IMAGE", "FLOAT",) RETURN_NAMES = ("network_trainer", "plot", "loss_list",) FUNCTION = "draw" CATEGORY = "FluxTrainer"
def draw(self, network_trainer, window_size, plot_style, normalize_y, width, height, log_scale): ...
add code
training_loop = network_trainer["training_loop"] network_trainer = network_trainer["network_trainer"]
...
It will make loss list become a list of all the same constants, I don't know how to modify it, temporarily shut down it.
if window_size > 0:
loss_values = moving_average(loss_values, window_size)
...
trainer = { "network_trainer": network_trainer, "training_loop": training_loop, }
change output
return (trainer, image_tensor, loss_values,)
What you need
- Model files
- 0.9 GiB known subtotal
Remaining hardware or download-size estimates are not available yet.
Requirements
Models
4- File specified
Checkpoint · 878 MB · Hugging Face · aka7774/comfyui-models
clip_l.safetensors
PossibleText encoder · Unknown
- Not resolved
LoRA · Hugging Face
- Not resolved
Checkpoint · Hugging Face
Sources
1 source
Sources
1 sourceModel artifacts
1 artifact
Model artifacts
1 artifactSource excerpts
1 excerpt
Source excerpts
1 excerptSource context: 865 downloads · Type Workflows · Base model Flux.1 S
