AutonomousDrivingCookbook
AutonomousDrivingCookbook copied to clipboard
ValueError: Received an empty batch. Batches should at least contain one item.
Hi, i started train model with custom dataset and after 24 epochs i've got error:
Traceback (most recent call last):
File "train_model.py", line 94, in
batch_size=32
How to solve this problem?
Is your batch size a multiple of 32?
Is your batch size a multiple of 32?
I use code without any changes.
Solved! Just have to restart. Different problem now, early stopping after 90 - 100 epochs.
What did you have to restart? I have the problem on several machines.
Solved! Just have to restart. Different problem now, early stopping after 90 - 100 epochs.
AFAIK it doesn't have to complete the training to 500 epoch. If the val_loss did not improve after several epoch, it will automatically stop (early stopping)
u can use the latest model it saved.