EAST icon indicating copy to clipboard operation
EAST copied to clipboard

An error about lanms

Open WhiteSouth opened this issue 6 years ago • 17 comments

When I run the demo ,I get the mistake that " raise RuntimeError('Cannot compile lanms: {}'.format(BASE_DIR)) RuntimeError: Cannot compile lanms: /media/reborn/Others/Study/CD/EAST/lanms"

And I don't know how to solve the problem ,could you give me some help?

WhiteSouth avatar Nov 21 '17 11:11 WhiteSouth

And when I make in lamns,the problem is g++: error: unrecognized command line option ‘-fno-plt’ Makefile:10: recipe for target 'adaptor.so' failed make: *** [adaptor.so] Error 1

WhiteSouth avatar Nov 21 '17 12:11 WhiteSouth

Please paste the output of g++ --version

On Tue, Nov 21, 2017 at 8:03 PM WhiteSouth [email protected] wrote:

And when I make in lamns,the problem is

g++: error: unrecognized command line option ‘-fno-plt’ Makefile:10: recipe for target 'adaptor.so' failed make: *** [adaptor.so] Error 1

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/argman/EAST/issues/70#issuecomment-346006647, or mute the thread https://github.com/notifications/unsubscribe-auth/AA2QT8THjpwcbkY3hsE-LyRmU70VRX0Xks5s4rwhgaJpZM4Qlpu5 .

zxytim avatar Nov 21 '17 12:11 zxytim

It doesn't make; daptor.cpp include/clipper/clipper.cpp --shared -fPIC g++: error: unrecognized command line option ‘-fno-plt’ Makefile:10: recipe for target 'adaptor.so' failed make: *** [adaptor.so] Error 1 the problem is above.If I changed the GCC from 5.4 to 4.8. The problem is still there...Can you give some help?

WhiteSouth avatar Nov 23 '17 05:11 WhiteSouth

Have you resolved this problem?And How? I have met this,too... Would you share the method with me ,thank you!(^_^)

lizzyYL avatar Dec 13 '17 13:12 lizzyYL

It's a matter of compiler version. Until you get that right, you can comment out the lanms import and usage in merge_quadrangle_n9

idoki avatar Dec 17 '17 12:12 idoki

I have already resolve it, but thanks anyway~ and you're right:) I have update gcc from 5.4 to 6.0. That's the matter of compiler version.

lizzyYL avatar Dec 20 '17 13:12 lizzyYL

hello! I meet the same problems,if I don't update gcc version,how i solve this problems?Could you give me any help?

lfdeep avatar Apr 09 '18 12:04 lfdeep

hello , i also met this problem, could you share your method ?@lizzyYL

tsing-cv avatar May 11 '18 12:05 tsing-cv

Until you get that right, you can comment out the lanms import and usage in merge_quadrangle_n9

for me this worked

RameshOswal avatar Jul 14 '18 23:07 RameshOswal

@idoki I have updated my gcc version from 5.4 to 6. I am able to compile it. but at the time of evaluation (eval.py), I am getting this error error

Do you know how to resolve it ?

IngleJaya95 avatar Oct 15 '18 12:10 IngleJaya95

I updated my gcc to 6 upgraded gcc using https://gist.github.com/zuyu/7d5682a5c75282c596449758d21db5ed http://tuxamito.com/wiki/index.php/Installing_newer_GCC_versions_in_Ubuntu https://gist.github.com/application2000/73fd6f4bf1be6600a2cf9f56315a2d91 Unfortunately i had miniconda3 installed on my system which pointed to python 3.7 now i'm having this error being displayed

/home/lenavo/EAST/lanms make: Entering directory '/home/lenavo/EAST/lanms' make: 'adaptor.so' is up to date. make: Leaving directory '/home/lenavo/EAST/lanms' main loading model resnet_v1_50/block1 (?, ?, ?, 256) resnet_v1_50/block2 (?, ?, ?, 512) resnet_v1_50/block3 (?, ?, ?, 1024) resnet_v1_50/block4 (?, ?, ?, 2048) Shape of f_0 (?, ?, ?, 2048) Shape of f_1 (?, ?, ?, 512) Shape of f_2 (?, ?, ?, 256) Shape of f_3 (?, ?, ?, 64) Shape of h_0 (?, ?, ?, 2048), g_0 (?, ?, ?, 2048) Shape of h_1 (?, ?, ?, 128), g_1 (?, ?, ?, 128) Shape of h_2 (?, ?, ?, 64), g_2 (?, ?, ?, 64) Shape of h_3 (?, ?, ?, 32), g_3 (?, ?, ?, 32) 2018-12-12 13:23:57.411277: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA 32 text boxes before nms Traceback (most recent call last): File "east.py", line 194, in main() File "east.py", line 190, in main predict((image_path)) File "east.py", line 164, in predict rst = get_predictor(checkpoint_path)(img) File "east.py", line 100, in predictor boxes, timer = detect(score_map = score, geo_map=geometry, timer=timer) File "/home/lenavo/EAST/eval.py", line 98, in detect boxes = lanms.merge_quadrangle_n9(boxes.astype('float32'), nms_thres) File "/home/lenavo/EAST/lanms/init.py", line 13, in merge_quadrangle_n9 from .adaptor import merge_quadrangle_n9 as nms_impl ImportError: Python version mismatch: module was compiled for version 3.7, while the interpreter is running version 3.5.

Any idea, on how to solve this issue?

I tried

I removed python 3.7 Then reinstall gcc 6

Completely removed gcc sudo apt-get remove --auto-remove gcc

Reinstalled it again

But unable to solve the issue

santhoshav15 avatar Dec 12 '18 07:12 santhoshav15

@santhoshav15 were you able to resolve this?

saharudra avatar Jun 05 '19 15:06 saharudra

were you able to resolve this?

liuzhuang1024 avatar Aug 16 '19 06:08 liuzhuang1024

@IngleJaya95 I face the same issue, were you able to solve it ?

gdelab avatar Jan 10 '20 09:01 gdelab

@gdelab No!

IngleJaya95 avatar Jan 10 '20 09:01 IngleJaya95

Me neither, the best I could do was comment boxes = lanms.merge_quadrangle_n9(boxes.astype('float32'), nms_thres) and uncomment boxes = nms_locality.nms_locality(boxes.astype(np.float64), nms_thres) in eval.py/detect

gdelab avatar Jan 10 '20 10:01 gdelab

Me neither, the best I could do was comment boxes = lanms.merge_quadrangle_n9(boxes.astype('float32'), nms_thres) and uncomment boxes = nms_locality.nms_locality(boxes.astype(np.float64), nms_thres) in eval.py/detect

Also, comment 'import lanms' line

dianeoyen avatar Nov 21 '20 18:11 dianeoyen