MichalBusta / E2E-MLT

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

VIDEOIO ERROR while running demo.py in CPU machine #27

Open Haruo195 opened 5 years ago

Haruo195 commented 5 years ago

Hi, while running the demo as follows: python3 demo.py -model=e2e-mlt.h5 -cuda=0

I am getting the error as

make: Entering directory '/home/virenv/ocv-td/E2E/E2E-MLT-master/nms'
make: 'adaptor.so' is up to date.
make: Leaving directory '/home/virenv/ocv-td/E2E/E2E-MLT-master/nms'
e2e-mlt.h5
VIDEOIO ERROR: V4L: can't open camera by index 0

I have changed this line sp = torch.load(fname) as sp = torch.load(fname, map_location='cpu') in net_utils.py

(Running in a virtual environment with python 3.5.2, Ubunutu 16.04, CPU machine, NO CUDA, torch version (CPU) '1.0.1.post2', openCV 4.0.0) Thank you.

youngkyung commented 5 years ago

I have the same issue, did you solve this error?

AmrMaghraby commented 5 years ago

Change it to -1 instead with 0 worked with me

liutianling commented 4 years ago

@AmrMaghraby Hello I have the issue of making the nms as follows: g++: error: unrecognized command line option ‘-fno-plt’ Makefile:10: recipe for target 'adaptor.so' failed make: *** [adaptor.so] Error 1

Can you help me how to fix it?Thanks!