You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
validation_data=eval_generator, validation_steps=num_eval_examples//batch_size, verbose=2)
File "C:\Python36\lib\site-packages\keras\legacy\interfaces.py", line 87, in wrapper
return func(*args, **kwargs)
File "C:\Python36\lib\site-packages\keras\engine\training.py", line 2169, in fit_generator
use_multiprocessing=use_multiprocessing)
File "C:\Python36\lib\site-packages\keras\legacy\interfaces.py", line 87, in wrapper
return func(*args, **kwargs)
File "C:\Python36\lib\site-packages\keras\engine\training.py", line 2305, in evaluate_generator
raise ValueError('Received an empty batch. '
ValueError: Received an empty batch. Batches should at least contain one item.
batch_size=32
How to solve this problem?
The text was updated successfully, but these errors were encountered:
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)
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
validation_data=eval_generator, validation_steps=num_eval_examples//batch_size, verbose=2)
File "C:\Python36\lib\site-packages\keras\legacy\interfaces.py", line 87, in wrapper
return func(*args, **kwargs)
File "C:\Python36\lib\site-packages\keras\engine\training.py", line 2169, in fit_generator
use_multiprocessing=use_multiprocessing)
File "C:\Python36\lib\site-packages\keras\legacy\interfaces.py", line 87, in wrapper
return func(*args, **kwargs)
File "C:\Python36\lib\site-packages\keras\engine\training.py", line 2305, in evaluate_generator
raise ValueError('Received an empty batch. '
ValueError: Received an empty batch. Batches should at least contain one item.
batch_size=32
How to solve this problem?
The text was updated successfully, but these errors were encountered: