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.
Profil d'exécution
- Accès
- Flux de travail externe
- Statut
- Présenté
- Version
- flux-lora-training.json
- Source
- Civitai
- Mis à jour
- 18 oct. 2026
Description de la source
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.
Exigences
Modèles
4- Fichier indiqué
Checkpoint · 878 MB · Hugging Face · aka7774/comfyui-models
clip_l.safetensors
PossibleText encoder · Unknown
- Non résolu
LoRA · Hugging Face
- Non résolu
Checkpoint · Hugging Face
Sources
1 source
Sources
1 sourceArtefacts du modèle
1 artefact
Artefacts du modèle
1 artefactExtraits de sources
1 extrait
Extraits de sources
1 extraitSource context: 865 downloads · Type Workflows · Base model Flux.1 S
