EAST
EAST copied to clipboard
Fatal Python error: PyThreadState_Get: no current thread
my sys env
OSX 10.13.3
Anaconda 2
python 2.7.14
TensorFlow 1.5.0
error info
2018-03-15 12:11:18.530558: I tensorflow/core/platform/cpu_feature_guard.cc:137] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.2 AVX AVX2 FMA
Restore from models/east_icdar2015_resnet_v1_50_rbox/model.ckpt-49491
Find 301 images
503 text boxes before nms
Fatal Python error: PyThreadState_Get: no current thread
[1] 43776 abort python2 eval.py --test_data_path Text
the c++ nms is in python3, you can use then python version
I use it in conda environment , python 3.6.8 tensorflow 1.13.1
Hello, did this issue ever get solved?
I encountered the same issue with conda on MacOS.
Short answer:
We should not use python3-config --ldflags in the Makefile for linked compilations,
but instead use the output from python -c "from distutils import sysconfig; print(sysconfig.get_config_var('BLDSHARED').split(' ', 1)[1]).
When I replaced this, or ran the c++ command manually with the adapted flags, I could finally import it.
I wrote a more elaborate answer here: https://github.com/argman/EAST/issues/174#issuecomment-710107426