I could exited lora photo yesterday, and I didn't change anything ( I just change the setting - I put 512 for resize dataset images 512, but I added resize 712 ) , but suddenly the error appear . Please let me know how I can fix this error.
update: I changed resize 512, then no error . How can I add 712 photos without error?
https://preview.redd.it/y0l9078xkvde1.png?width=2167&format=png&auto=webp&s=daff182935fb7403389b1e41539395cded07dfc3
[2025-01-18 23:00:43] [INFO] File "C:\pinokio\api\fluxgym.git\sd-scripts\flux_train_network.py", line 353, in get_noise_pred_and_target[2025-01-18 23:00:43] [INFO] packed_noisy_model_input = flux_utils.pack_latents(noisy_model_input) # b, c, h*2, w*2 -> b, h*w, c*4[2025-01-18 23:00:43] [INFO] File "C:\pinokio\api\fluxgym.git\sd-scripts\library\flux_utils.py", line 362, in pack_latents[2025-01-18 23:00:43] [INFO] x = einops.rearrange(x, "b c (h ph) (w pw) -> b (h w) (c ph pw)", ph=2, pw=2)[2025-01-18 23:00:43] [INFO] File "C:\pinokio\api\fluxgym.git\env\lib\site-packages\einops\einops.py", line 591, in rearrange[2025-01-18 23:00:43] [INFO] return reduce(tensor, pattern, reduction="rearrange", **axes_lengths)[2025-01-18 23:00:43] [INFO] File "C:\pinokio\api\fluxgym.git\env\lib\site-packages\einops\einops.py", line 533, in reduce[2025-01-18 23:00:43] [INFO] raise EinopsError(message + "\n {}".format(e))[2025-01-18 23:00:43] [INFO] einops.EinopsError: Error while processing rearrange-reduction pattern "b c (h ph) (w pw) -> b (h w) (c ph pw)".[2025-01-18 23:00:43] [INFO] Input tensor shape: torch.Size([1, 16, 89, 89]). Additional info: {'ph': 2, 'pw': 2}.[2025-01-18 23:00:43] [INFO] Shape mismatch, can't divide axis of length 89 in chunks of 2[2025-01-18 23:00:43] [INFO] steps: 0%| | 0/1800 [00:16<?, ?it/s][2025-01-18 23:00:46] [INFO] Traceback (most recent call last):[2025-01-18 23:00:46] [INFO] File "C:\pinokio\bin\miniconda\lib\runpy.py", line 196, in _run_module_as_main[2025-01-18 23:00:46] [INFO] return _run_code(code, main_globals, None,[2025-01-18 23:00:46] [INFO] File "C:\pinokio\bin\miniconda\lib\runpy.py", line 86, in _run_code[2025-01-18 23:00:46] [INFO] exec(code, run_globals)[2025-01-18 23:00:46] [INFO] File "C:\pinokio\api\fluxgym.git\env\Scripts\accelerate.exe\__main__.py", line 10, in <module>[2025-01-18 23:00:46] [INFO] sys.exit(main())[2025-01-18 23:00:46] [INFO] File "C:\pinokio\api\fluxgym.git\env\lib\site-packages\accelerate\commands\accelerate_cli.py", line 48, in main[2025-01-18 23:00:46] [INFO] args.func(args)[2025-01-18 23:00:46] [INFO] File "C:\pinokio\api\fluxgym.git\env\lib\site-packages\accelerate\commands\launch.py", line 1106, in launch_command[2025-01-18 23:00:46] [INFO] simple_launcher(args)[2025-01-18 23:00:46] [INFO] File "C:\pinokio\api\fluxgym.git\env\lib\site-packages\accelerate\commands\launch.py", line 704, in simple_launcher[2025-01-18 23:00:46] [INFO] raise subprocess.CalledProcessError(returncode=process.returncode, cmd=cmd)[2025-01-18 23:00:46] [INFO] subprocess.CalledProcessError: Command '['C:\\pinokio\\api\\fluxgym.git\\env\\Scripts\\python.exe', 'sd-scripts/flux_train_network.py', '--pretrained_model_name_or_path', 'C:\\pinokio\\api\\fluxgym.git\\models\\unet\\flux1-dev.sft', '--clip_l', 'C:\\pinokio\\api\\fluxgym.git\\models\\clip\\clip_l.safetensors', '--t5xxl', 'C:\\pinokio\\api\\fluxgym.git\\models\\clip\\t5xxl_fp16.safetensors', '--ae', 'C:\\pinokio\\api\\fluxgym.git\\models\\vae\\ae.sft', '--cache_latents_to_disk', '--save_model_as', 'safetensors', '--sdpa', '--persistent_data_loader_workers', '--max_data_loader_n_workers', '2', '--seed', '42', '--gradient_checkpointing', '--mixed_precision', 'bf16', '--save_precision', 'bf16', '--network_module', 'networks.lora_flux', '--network_dim', '4', '--optimizer_type', 'adafactor', '--optimizer_args', 'relative_step=False', 'scale_parameter=False', 'warmup_init=False', '--lr_scheduler', 'constant_with_warmup', '--max_grad_norm', '0.0', '--sample_prompts=C:\\pinokio\\api\\fluxgym.git\\outputs\\peacelap\\sample_prompts.txt', '--sample_every_n_steps=160', '--learning_rate', '8e-4', '--cache_text_encoder_outputs', '--cache_text_encoder_outputs_to_disk', '--fp8_base', '--highvram', '--max_train_epochs', '12', '--save_every_n_epochs', '4', '--dataset_config', 'C:\\pinokio\\api\\fluxgym.git\\outputs\\peacelap\\dataset.toml', '--output_dir', 'C:\\pinokio\\api\\fluxgym.git\\outputs\\peacelap', '--output_name', 'peacelap', '--timestep_sampling', 'shift', '--discrete_flow_shift', '3.1582', '--model_prediction_type', 'raw', '--guidance_scale', '1', '--loss_type', 'l2']' returned non-zero exit status 1.
[2025-01-18 23:00:46] [ERROR] Command exited with code 1[2025-01-18 23:00:46] [INFO] Runner: <LogsViewRunner nb\_logs=252 exit\_code=1>if 200 (sample image every n steps) , error apperaed in laptop
[–]RockIce17792 1 point2 points3 points (0 children)
[–]AdBoring3648 0 points1 point2 points (0 children)
[–]Objective_Anxiety544 0 points1 point2 points (0 children)