Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Haruo195 opened this issue Apr 16, 2019 · 3 comments
Open

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

Haruo195 opened this issue Apr 16, 2019 · 3 comments

Comments

@Haruo195
Copy link

Haruo195 commented Apr 16, 2019

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.

@Haruo195 Haruo195 changed the title VIDEOIO ERROR while running demo in CPU machine VIDEOIO ERROR while running demo.py in CPU machine Apr 16, 2019
@youngkyung
Copy link

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

@AmrMaghraby
Copy link

Change it to -1 instead with 0 worked with me

@liutianling
Copy link

@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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants