caffe icon indicating copy to clipboard operation
caffe copied to clipboard

Error when do "python ssd_pascal_video.py" and "python ssd_pascal_webcam.py"

Open Alex287 opened this issue 9 years ago • 4 comments

Issue summary

Open video file failed when I do "python ssd_pascal_video.py". I think it is my opencv's problem. So I touch a test.cpp file to test "VideoCapture.open(xxx), VideoCapture.isOpened()", it always returns 0. My opencv version is 2.4.9. And then I install "libavcodec-dev libavformat-dev libswscale-dev", the problems still happens. Sorry for my bad English, this is the first time I ask question in English. Any help would be appriciated!

Your system configuration

Operating system:IBM's superVesselCloud caffe running environment. Ubuntu 14.04 Compiler:g++ (Ubuntu 4.8.2-19ubuntu1) 4.8.2
CUDA version (if applicable): CUDNN version (if applicable): BLAS: Python or MATLAB version (for pycaffe and matcaffe respectively):

Alex287 avatar Apr 02 '17 09:04 Alex287

I think that you should run python ~ in %CAFFE_ROOT%. And you would type "python examples/ssd/ssd_pascal_video.py"

mintlatte avatar Apr 10 '17 08:04 mintlatte

@mintlatte Thanks for your answer! I hava tried run that in the caffe's root,and it was the same result : Failed to open the video. And I found it was my " video decoder's " problem. There are many old blogs tell me to install ffmpeg before install opencv from source code... But different versions of g++, Cuda, ffmpeg, opencv cause a lot of compatibility problems..Today I install double OS in my PC,I want to install it from begning . Could you please recommend me an installiation introduction. I see you have opened a new issue about video ratio problem, so you must installed it successfully

Alex287 avatar Apr 11 '17 17:04 Alex287

@Alex287 I used ubuntu 16.04 and I just followed caffe installation this installation description. Except libraries about that, I just installed cuda 8.0 and I didn't install another program (maybe). As the same, the video codec or decoder, Maybe I just used basic program in ubuntu. I'm sorry, I can't help you about that problems.

mintlatte avatar Apr 12 '17 00:04 mintlatte

@mintlatte Thanks for your help, I have succeed in installing SSD in both GPU and CPU mode. And everything goes successfully when I followed your recommendation link.

Alex287 avatar Apr 20 '17 15:04 Alex287