facebookresearch / maskrcnn-benchmark

Fast, modular reference implementation of Instance Segmentation and Object Detection algorithms in PyTorch.
MIT License
9.29k stars 2.5k forks source link

bug about webcam demo #616

Closed sheep1234567 closed 5 years ago

sheep1234567 commented 5 years ago

❓ Questions and Help

image

Hi, I tried to run the webcam.py demo, but it occurs this problem, I am wondering what's wrong with it?

Thanks!

fmassa commented 5 years ago

I think you might have a problem with OpenCV not being able to read from your webcam. See https://stackoverflow.com/questions/21043394/opencvs-video-capture-not-returning-an-image for more information.

I'm closing this issue as this is not a problem with maskrcnn-benchmark

sheep1234567 commented 5 years ago

Thanks! @fmassa

I tried to just run simple prediction using

image

but it occurs

image

I checked my gcc version

image

and CUDA

image

and I am wondering why I still cannot run simple demo. TAT

fmassa commented 5 years ago

I'd recommend uninstalling maskrcnn-benchmark, deleting the build folder and installing again, making sure that you are using the same python environment for compiling and for running the code

emergencyd commented 5 years ago

@sheep1234567 hi! have you solved the problem about webcam?