MichalBusta / E2E-MLT

E2E-MLT - an Unconstrained End-to-End Method for Multi-Language Scene Text
MIT License
290 stars 84 forks source link

RuntimeError: Cannot compile nms: /home/miteng/E2E-MLT-master/nms #61

Closed MiTeng0215 closed 4 years ago

MiTeng0215 commented 4 years ago
In file included from adaptor.cpp:5:0:
../nms/nms.h: In member function ‘void nms::PolyMerger::add(const nms::Polygon&)’:
../nms/nms.h:77:19: error: ‘const struct nms::Polygon’ has no member named ‘nr_polys’
     nr_polys += p.nr_polys;
                   ^
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
include/clipper/clipper.cpp: In member function ‘void ClipperLib::Clipper::FixupFirstLefts3(ClipperLib::OutRec*, ClipperLib::OutRec*)’:
include/clipper/clipper.cpp:3666:13: warning: unused variable ‘firstLeft’ [-Wunused-variable]
     OutRec* firstLeft = ParseFirstLeft(outRec->FirstLeft);
             ^
Makefile:10: recipe for target 'adaptor.so' failed
make: *** [adaptor.so] Error 1
make: Leaving directory '/home/miteng/E2E-MLT-master/nms'
Traceback (most recent call last):
  File "demo.py", line 10, in <module>
    from nms import get_boxes
  File "/home/miteng/E2E-MLT-master/nms/__init__.py", line 8, in <module>
    raise RuntimeError('Cannot compile nms: {}'.format(BASE_DIR))
RuntimeError: Cannot compile nms: /home/miteng/E2E-MLT-master/nms

My env is: python:3.7.0 torch:0.4.1

When i excute python demo.py -model=e2e-mlt.h5.I got the above error,can you help me.