When using the Keras integration with
ctx = neptune.Context()
ctx.integrate_with_keras()
and then running the script with neptune run
, the carriage returns in Keras’s verbose output stop working, leading to every update to the output resulting in a newline being printed, which is very frustrating.
Essentially the output looks like this:
1306/5947 [=====>........................] - ETA: 1:11:23 - loss: 1.8453 - acc: 0.5650 - map3: 0.7496
1307/5947 [=====>........................] - ETA: 1:11:22 - loss: 1.8449 - acc: 0.5651 - map3: 0.7497
1308/5947 [=====>........................] - ETA: 1:11:21 - loss: 1.8445 - acc: 0.5652 - map3: 0.7497
1309/5947 [=====>........................] - ETA: 1:11:20 - loss: 1.8441 - acc: 0.5652 - map3: 0.7498
1310/5947 [=====>........................] - ETA: 1:11:19 - loss: 1.8437 - acc: 0.5653 - map3: 0.7499
1311/5947 [=====>........................] - ETA: 1:11:18 - loss: 1.8433 - acc: 0.5654 - map3: 0.7500
1312/5947 [=====>........................] - ETA: 1:11:17 - loss: 1.8430 - acc: 0.5655 - map3: 0.7500
1313/5947 [=====>........................] - ETA: 1:11:16 - loss: 1.8426 - acc: 0.5656 - map3: 0.7501
This does not occur when the script is just run with the python
command, although in this case the neptune integration does not work, so the issue occurs somewhere in the Keras integration.