更新时间:2023-12-02 15:18:58
这似乎与Keras保持一致.我试图找到线段
This seems to be a consistent problem with Keras. I tried to find the lines
sys.stdout.write('\b' * prev_total_width)
sys.stdout.write('\r')
在Keras/utils/generic_utils.py文件中,它们(在当前版本中)分别为258和259.我评论像258,但这似乎无法解决问题.我确实通过注释以下行使进度条起作用:
at the Keras/utils/generic_utils.py file and they are (as of the current version) at 258 and 259 accordingly. I commented like 258 but this seems not to resolve the issue. I did manage to make the progress bar work by commenting the line:
第303行:sys.stdout.write(info)
信息似乎使该栏对于终端来说太长了,因此它中断了新的一行.
It seems as if the info makes the bar too long for the terminal and so it breaks to a new line.
所以我终于解决了这个问题.最后似乎很简单....
So I finally resolved the issue. It seems like it was rather simple at the end....
只需将终端加宽...
Just make the terminal wider...
注意:已在Linux Ubuntu 16.04上进行了测试| Keras版本2.0.5
Note: Tested on Linux Ubuntu 16.04 | Keras Version 2.0.5