MichalBusta/E2E-MLT

Error While running demo script

ashishgupta2598 opened this issue · 7 comments

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

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

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

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

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

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.