In case of really small dataset. MAX_STEPS can be less than 1 and lead to error.
oatawa1 opened this issue · 0 comments
oatawa1 commented
From this line of code
Line 194 in ad162bd
When the dataset is really small, precisely, no. of train dataset*max_epochs < batch_size
, it can cause max_steps = 0 which leads to OverflowError
.
File "blueoil/cmd/train.py", line 200, in start_training
progbar.update(last_step)
File "/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/keras/utils/generic_utils.py", line 396, in update
numdigits = int(np.log10(self.target)) + 1
OverflowError: cannot convert float infinity to integer