EAST
EAST copied to clipboard
Import error when trying eval.py
I have got the error below when I try eval.py.
Find 5 images
194 text boxes before nms
Traceback (most recent call last):
File "eval.py", line 194, in
It seems I do not import adaptor correctly. I have compiled lamns and adaptor.pyd is generated. I run in Win10 environment. Can anyone help me on this? Thanks a lot!
I encounter the same question, have you solved it? Thank you!!!!!!!!!!
bump! anyone solved this yet?
Me also waiting for a life saver, and before that, using locality_aware_nms.py
instead of lanms
might be a sloowwwww solution
in lanms/
, edit the Makefile
, and the script looks like:
CXXFLAGS = -I include -std=c++11 -O3 $(shell python3-config --cflags)
LDFLAGS = $(shell python3-config --ldflags)
DEPS = lanms.h $(shell find include -xtype f)
CXX_SOURCES = adaptor.cpp include/clipper/clipper.cpp
...
Notice the $(shell python-config --cflags)
at line 1. Try this command in your terminal, and you'll get information like:
-I/data/home/username/anaconda3/include/python3.7m -I/data/home/username/anaconda3/include/python3.7m -Wno-unused-result -Wsign-compare -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O3 -pipe -fdebug-prefix-map==/usr/local/src/conda/- -fdebug-prefix-map==/usr/local/src/conda-prefix -fuse-linker-plugin -ffat-lto-objects -flto-partition=none -flto -flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none -g -DNDEBUG -fwrapv -O3 -Wall
Here, remove -fno-plt
, -mtune=haswell
, and paste the rest of information into Makefile
and replace $(shell python3-config --cflags)
at line 1 (line 2 doesn't really matter). Save and quit. I hope then you can make
.
I have same error, do you solve it?
File "D:\Tensorflow\text-detection\EAST-master\lanms_init.py", line 12, in merge_quadrangle_n9 from .adaptor import merge_quadrangle_n9 as nms_impl ImportError: DLL load failed How can I solve it on windows 10?