Reposting:
I'm trying to create a LoRA for Flux using ComfyUI and the custom node "ComfyUI Flux Trainer". I was able to get a dataset and start training but at 750 steps in (25%) I got an error saying:
RuntimeError: torch.cat(): expected a non-empty list of Tensors
It looks like it was trying to generate a sample image and was unable to do so. I don't really know why this happened and was wondering if anyone could give me some guidance to either (A) fix this problem or (B) suggest another way to locally create and train LoRA for Flux.
I tried a second time as well after messing around a bit with a new data set. I got the same issue. It seems that there is a 'sample images' directory or something that is empty and I do not know where to locate that or why it is empty.
The relevant traceback is:
File "C:\AIArt\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-FluxTrainer\library\flux_train_utils.py", line 110, in sample_images
return torch.cat(image_tensor_list, dim=0)
RuntimeError: torch.cat(): expected a non-empty list of Tensors