Windows系统下,pycharm编译器运行.py文件出现:Fatal Python error: Aborted错误。具体情况如下:
Fatal Python error: Aborted
Current thread 0x00004164 (most recent call first):
File "E:\anaconda\envs\py3.6\lib\site-packages\tensorflow_core\python\client\session.py", line 1443 in _call_tf_sessionrun
File "E:\anaconda\envs\py3.6\lib\site-packages\tensorflow_core\python\client\session.py", line 1350 in _run_fn
File "E:\anaconda\envs\py3.6\lib\site-packages\tensorflow_core\python\client\session.py", line 1365 in _do_call
File "E:\anaconda\envs\py3.6\lib\site-packages\tensorflow_core\python\client\session.py", line 1359 in _do_run
File "E:\anaconda\envs\py3.6\lib\site-packages\tensorflow_core\python\client\session.py", line 1180 in _run
File "E:\anaconda\envs\py3.6\lib\site-packages\tensorflow_core\python\client\session.py", line 956 in run
File "mpi_from_images.py", line 305 in main
File "E:\anaconda\envs\py3.6\lib\site-packages\absl\app.py", line 250 in _run_main
File "E:\anaconda\envs\py3.6\lib\site-packages\absl\app.py", line 299 in run
File "E:\anaconda\envs\py3.6\lib\site-packages\tensorflow_core\python\platform\app.py", line 40 in run
File "mpi_from_images.py", line 362 in <module>
其中mpi_from_images.py的305行是这样的:
with tf.Session() as sess:
renders[multiple] = (index, sess.run(cropped))
这种错误该怎么下手解决呢,感觉出在session这里。代码和预训练模型应该都是在Linux环境下配置和得到的(应该是,不确定),我在Windows下做的。而且python版本貌似也不太对应(代码出处没交代,我就自己配置了,不过代码并没报错,有一些警告,也能跑起来)。所以会不会是这些问题引起的错误呢?有没有懂的人给我指条明路。