cocktailpeanut / fluxgym

Dead simple FLUX LoRA training UI with LOW VRAM support
MIT License
1.3k stars 108 forks source link

Error When Using STOIQONewRealityFLUXSD_F1DAlpha.safetensors: Empty Sequence in analyze_checkpoint_state #191

Open Siavee-uni opened 1 month ago

Siavee-uni commented 1 month ago

Error When Using STOIQONewRealityFLUXSD_F1DAlpha.safetensors: Empty Sequence in analyze_checkpoint_state

Description:

Hello,

I'm encountering an issue when trying to train a model using the STOIQONewRealityFLUXSD_F1DAlpha.safetensors file from the TheImposterImposters/STOIQONewRealityFLUXSDXLLightning-F.1DAlpha repository.

Steps to Reproduce:

  1. Configuring the model with the following:
    
    newReality:
       repo: TheImposterImposters/STOIQONewRealityFLUXSDXLLightning-F.1DAlpha
       base: TheImposterImposters/STOIQONewRealityFLUXSDXLLightning-F.1DAlpha
       license: other
       file: STOIQONewrealityFLUXSD_F1DAlpha.safetensors

The model is successfully downloaded, but when running the training script, I encounter the following error:

ValueError: max() arg is an empty sequence

Specifically, this occurs in the flux_utils.analyze_checkpoint_state function at line 81.

[INFO] _, is_schnell, _, _ = flux_utils.analyze_checkpoint_state(args.pretrained_model_name_or_path)
[INFO] File "C:\Users\Gabriel\PhpstormProjects\fluxgym\sd-scripts\library\flux_utils.py", line 81, in analyze_checkpoint_state
[INFO] max_double_block_index = max(
[INFO] ValueError: max() arg is an empty sequence

Observations:

Questions:

  1. What changes or configuration adjustments should I make to resolve this issue? Is this a known issue with the model checkpoint format, or is the model missing some necessary metadata?
  2. Is the STOIQONewRealityFLUXSD_F1DAlpha.safetensors file fully compatible with flux_train_network.py, or does it require additional steps to load properly?
  3. Could you provide guidance on how to debug this further, especially regarding the empty sequence in analyze_checkpoint_state?

I’ve also checked the paths and verified that all required files (clip_l.safetensors, t5xxl_fp16.safetensors, and ae.sft) are correctly set up.

Any help would be greatly appreciated. Thank you in advance!

WeiYang1982 commented 3 weeks ago

the same to me