train_dataset_group.new_cache_latents(ae, accelerator.is_main_process)
Do these dumb fucks not test their code? This code does not work because it's supposed to pass the accelerator object not the fucking is_main_process bool. So some dumb fucker coder is writing code they didn't even fucking test.