EAST icon indicating copy to clipboard operation
EAST copied to clipboard

Fatal Python error: PyThreadState_Get: no current thread

Open ZhangXinNan opened this issue 7 years ago • 4 comments
trafficstars

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  

ZhangXinNan avatar Mar 15 '18 04:03 ZhangXinNan

the c++ nms is in python3, you can use then python version

argman avatar Mar 25 '18 01:03 argman

I use it in conda environment , python 3.6.8 tensorflow 1.13.1

ZhangXinNan avatar Nov 17 '19 14:11 ZhangXinNan

Hello, did this issue ever get solved?

abravo3641 avatar Jun 30 '20 05:06 abravo3641

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

luksurious avatar Oct 16 '20 15:10 luksurious