-
Notifications
You must be signed in to change notification settings - Fork 45
Description
when i used icar2015 dataset to train, loss was nan,flollowing:
Epoch 1/10
200/200 [==============================] - ETA: 0s - loss: 10.4658 E:\githubcode\DifferentiableBinarization\generator_tf.py:98: RuntimeWarning: invalid value encountered in true_divide
cosin = (square_distance - square_distance_1 - square_distance_2) /(2 * np.sqrt(square_distance_1 * square_distance_2))
200/200 [==============================] - 6289s 32s/step - loss: 10.4462 - val_loss: 5.5865
Epoch 00001: saving model to checkpoints/2021-05-11\db_01_6.5202_5.5865.h5
Epoch 2/10
200/200 [==============================] - 2867s 14s/step - loss: nan - val_loss: nan
Epoch 00002: saving model to checkpoints/2021-05-11\db_02_nan_nan.h5
Epoch 3/10
200/200 [==============================] - 2693s 13s/step - loss: nan - val_loss: nan
Epoch 00003: saving model to checkpoints/2021-05-11\db_03_nan_nan.h5
Epoch 4/10
200/200 [==============================] - 2595s 13s/step - loss: nan - val_loss: nan