MichalBusta / E2E-MLT

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

Error While running demo script #64

Open ashishgupta2598 opened 4 years ago

ashishgupta2598 commented 4 years ago

make: Entering directory '/media/ai/ashish/OCR/mrz_newTest/E2E-MLT/nms' make: 'adaptor.so' is up to date. make: Leaving directory '/media/ai/ashish/OCR/mrz_newTest/E2E-MLT/nms' Traceback (most recent call last): Command- python3 demo.py -model=e2e-mlt.h5 Error-:

File "/media/ai/ashish/OCR/mrz_newTest/E2E-MLT/net_utils.py", line 30, in load_net
    v.copy_(param)
RuntimeError: The expanded size of the tensor (8400) must match the existing size (7500) at non-singleton dimension 0
Traceback (most recent call last):
  File "/media/ai/ashish/OCR/mrz_newTest/E2E-MLT/net_utils.py", line 30, in load_net
    v.copy_(param)
RuntimeError: The expanded size of the tensor (8400) must match the existing size (7500) at non-singleton dimension 0
e2e-mlt.h5
Using cuda ...
[ WARN:0] global /io/opencv/modules/videoio/src/cap_v4l.cpp (887) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
duxiangcheng commented 4 years ago

I have met the same problem. Have you solved it? thanks!

duxiangcheng commented 4 years ago

@ashishgupta2598 I have met the same problem. Have you solved it?

MichalBusta commented 4 years ago

49

duxiangcheng commented 4 years ago

@MichalBusta thank you !

MichalBusta commented 4 years ago

On 27/03/2020 13:42, duxiangcheng wrote:

@MichalBusta https://github.com/MichalBusta Thank you! But the error is "can't open camera by index". Can you give me some advice?

opencv stuff (not related to project) - can be caused by:

 - you are trying  to open non-existing camera

 - your opencv is not compiled with v4l support

no stacktrace, no help, sorry

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/MichalBusta/E2E-MLT/issues/64#issuecomment-604979599, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA7KHMDNVAQDSCASX7S62TDRJSNKLANCNFSM4LRG27PA.

ashishgupta2598 commented 4 years ago

I have met the same problem. Have you solved it? thanks!

@duxiangcheng No!! I am still figuring out !!!

AniketGurav commented 2 years ago

There are 2 pre-trained models 1. e2e-mlt 2. e2e-mlt-rctw I guess you are using 1st one. Try the 2nd model mentioned above The link for downloading it is given on the main page.