weiliu89 / caffe

Caffe: a fast open framework for deep learning.
http://caffe.berkeleyvision.org/
Other
4.77k stars 1.68k forks source link

A strange error when i run ssd_pascal_video.py #794

Open HilbertXu opened 6 years ago

HilbertXu commented 6 years ago

@weiliu89

i followed all steps in the main page,and nothing was wrong .but when i run ssd_pascal_video.py , a strange error occured :

I1122 20:03:59.545342 19850 layer_factory.hpp:77] Creating layer conv1_1 I1122 20:03:59.545428 19850 net.cpp:100] Creating Layer conv1_1 I1122 20:03:59.545477 19850 net.cpp:434] conv1_1 <- data_data_0_split_0 I1122 20:03:59.545532 19850 net.cpp:408] conv1_1 -> conv1_1 Aborted at 1511352239 (unix time) try "date -d @1511352239" if you are using GNU date PC: @ 0x7fd0773f55eb (unknown) SIGSEGV (@0x10) received by PID 19850 (TID 0x7fd06e7fc700) from PID 16; stack trace: @ 0x7fd0b40b14a0 (unknown) @ 0x7fd0773f55eb (unknown) @ 0x7fd0773da9e5 (unknown) @ 0x7fd076e13356 (unknown) @ 0x7fd076df1140 (unknown) @ 0x7fd0773f040d (unknown) @ 0x7fd076df7f42 (unknown) @ 0x7fd076dfa2e9 (unknown) @ 0x7fd076df0abc __cuda_CallJitEntryPoint @ 0x7fd083238582 fatBinaryCtl_Compile @ 0x7fd06d771c32 (unknown) @ 0x7fd06d7727b3 (unknown) @ 0x7fd06d772e83 (unknown) @ 0x7fd06d66d317 (unknown) @ 0x7fd06d66dbbd (unknown) @ 0x7fd06d66cb3d (unknown) @ 0x7fd0ab2064a9 OPENCL_FN_clCreateContext_switch_fn() @ 0x7fd0ab30bda9 cv::ocl::Context::Impl::setDefault() @ 0x7fd0ab30d561 cv::ocl::Context::getDefault() @ 0x7fd0ab30d64b cv::ocl::Device::getDefault() @ 0x7fd0ab30d6ad cv::ocl::useOpenCL() @ 0x7fd0a8237743 cv::resize() @ 0x7fd0b605e30a caffe::ApplyResize() @ 0x7fd0b60096c2 caffe::DataTransformer<>::Transform() @ 0x7fd0b60135e6 caffe::DataTransformer<>::Transform() @ 0x7fd0b6146eca caffe::VideoDataLayer<>::load_batch() @ 0x7fd0b615895f caffe::BasePrefetchingDataLayer<>::InternalThreadEntry() @ 0x7fd0b6031685 caffe::InternalThread::entry() @ 0x7fd0a76585d5 (unknown) @ 0x7fd099d9c6fa start_thread @ 0x7fd0b4182b5d clone @ 0x0 (unknown) Segmentation fault (core dumped)

AND!!! when i run ssd_pascal_webcam.py everything is right and i successfully see the real time image from my webcam

then i tried to train a model the error changed but it was aborted at the same step :

I1122 20:23:14.393779 20219 net.cpp:100] Creating Layer conv1_1 I1122 20:23:14.393796 20219 net.cpp:434] conv1_1 <- data_data_0_split_0 I1122 20:23:14.393832 20219 net.cpp:408] conv1_1 -> conv1_1 Aborted at 1511353394 (unix time) try "date -d @1511353394" if you are using GNU date PC: @ 0x7f83fc51de48 (unknown) SIGSEGV (@0x8) received by PID 20219 (TID 0x7f83f77fe700) from PID 8; stack trace: @ 0x7f84356a34a0 (unknown) @ 0x7f83fc51de48 (unknown) @ 0x7f83fc514615 (unknown) @ 0x7f83fcb0f40d (unknown) @ 0x7f83fc517b94 (unknown) @ 0x7f83fc5192e9 (unknown) @ 0x7f83fc50fabc __cuda_CallJitEntryPoint @ 0x7f840482a582 fatBinaryCtl_Compile @ 0x7f83f6773c32 (unknown) @ 0x7f83f67747b3 (unknown) @ 0x7f83f6774e83 (unknown) @ 0x7f83f666f317 (unknown) @ 0x7f83f666fbbd (unknown) @ 0x7f83f666eb3d (unknown) @ 0x7f842c7f84a9 OPENCL_FN_clCreateContext_switch_fn() @ 0x7f842c8fdda9 cv::ocl::Context::Impl::setDefault() @ 0x7f842c8ff561 cv::ocl::Context::getDefault() @ 0x7f842c8ff64b cv::ocl::Device::getDefault() @ 0x7f842c8ff6ad cv::ocl::useOpenCL() @ 0x7f8429890b0d cv::cvtColor() @ 0x7f843764f308 caffe::AdjustSaturation() @ 0x7f843765443b caffe::RandomSaturation() @ 0x7f8437654bff caffe::ApplyDistort() @ 0x7f84375f7e22 caffe::DataTransformer<>::DistortImage() @ 0x7f843779f4a6 caffe::AnnotatedDataLayer<>::load_batch() @ 0x7f843774a95f caffe::BasePrefetchingDataLayer<>::InternalThreadEntry() @ 0x7f8437623685 caffe::InternalThread::entry() @ 0x7f8428c4a5d5 (unknown) @ 0x7f841b38e6fa start_thread @ 0x7f8435774b5d clone @ 0x0 (unknown) Segmentation fault (core dumped)

BY THE WAY in the Makefile.config i change Blas: = open into Blas : = atlas

GPU : GTX 1070 CUDA version 8.0: CUDNN version 6.1: BLAS: Altas

i m preparing the robocup ,so i want to use ssd to realize the gender and object decete. This is my first time using caffe , and forgive my poor english ,thanks~

yantingj commented 6 years ago

hi! I encounter this error too! Have you solved this problem? Please tell me how to do with this! Thanks!

han1ning1 commented 6 years ago

I encounter this error too. And I re-install opencv with WITH_OPENCL=OFF I make it succeed.