Open Ophelia20444 opened 5 years ago
训练的时候并没有出什么问题,但是在训练过程结束之后出现了下面这些提示: Epoch 30/30 703/703 [==============================] - 1410s 2s/step - loss: 0.2347 - acc: 0.9036 - val_loss: 1.0093 - val_acc: 0.7139 Traceback (most recent call last):
File "", line 1, in get_ipython().run_line_magic('run', 'segnet_train.py -m segnet.h5')
File "/opt/Anaconda3/lib/python3.7/site-packages/IPython/core/interactiveshell.py", line 2287, in run_line_magic result = fn(*args,**kwargs)
File "", line 2, in run
File "/opt/Anaconda3/lib/python3.7/site-packages/IPython/core/magic.py", line 187, in call = lambda f, *a, *k: f(a, **k)
File "/opt/Anaconda3/lib/python3.7/site-packages/IPython/core/magics/execution.py", line 807, in run run()
File "/opt/Anaconda3/lib/python3.7/site-packages/IPython/core/magics/execution.py", line 793, in run exit_ignore=exit_ignore)
File "/opt/Anaconda3/lib/python3.7/site-packages/IPython/core/pylabtools.py", line 180, in mpl_execfile if plt.draw_if_interactive.called:
AttributeError: 'function' object has no attribute 'called'
我真的是看不出来是哪里的问题……有人知道吗?
同样的问题,你解决了吗
pip install ipython --upgrade --user 在terminal运行这个指令这行解决了我的问题
训练的时候并没有出什么问题,但是在训练过程结束之后出现了下面这些提示: Epoch 30/30 703/703 [==============================] - 1410s 2s/step - loss: 0.2347 - acc: 0.9036 - val_loss: 1.0093 - val_acc: 0.7139 Traceback (most recent call last):
File "", line 1, in
get_ipython().run_line_magic('run', 'segnet_train.py -m segnet.h5')
File "/opt/Anaconda3/lib/python3.7/site-packages/IPython/core/interactiveshell.py", line 2287, in run_line_magic result = fn(*args,**kwargs)
File "", line 2, in run
File "/opt/Anaconda3/lib/python3.7/site-packages/IPython/core/magic.py", line 187, in
call = lambda f, *a, *k: f(a, **k)
File "/opt/Anaconda3/lib/python3.7/site-packages/IPython/core/magics/execution.py", line 807, in run run()
File "/opt/Anaconda3/lib/python3.7/site-packages/IPython/core/magics/execution.py", line 793, in run exit_ignore=exit_ignore)
File "/opt/Anaconda3/lib/python3.7/site-packages/IPython/core/pylabtools.py", line 180, in mpl_execfile if plt.draw_if_interactive.called:
AttributeError: 'function' object has no attribute 'called'
我真的是看不出来是哪里的问题……有人知道吗?