eric612 / MobileNet-YOLO

A caffe implementation of MobileNet-YOLO detection network
Other
865 stars 442 forks source link

用caffe自带的time测试prototxt时的错误 #55

Open corleonechensiyu opened 5 years ago

corleonechensiyu commented 5 years ago

root@csy:/home/csy/caffe# ./build/tools/caffe time -gpu 0 -model /home/csy/MobileNet-YOLO/benchmark/mobilenet_yolov3_lite_deploy.prototxt I0111 13:22:12.863822 341 caffe.cpp:343] Use GPU with device ID 0 [libprotobuf ERROR google/protobuf/text_format.cc:274] Error parsing text-format caffe.NetParameter: 954:33: Message type "caffe.LayerParameter" has no field named "yolov3_detection_output_param". F0111 13:22:13.106006 341 upgrade_proto.cpp:88] Check failed: ReadProtoFromTextFile(param_file, param) Failed to parse NetParameter file: /home/csy/MobileNet-YOLO/benchmark/mobilenet_yolov3_lite_deploy.prototxt Check failure stack trace: @ 0x7f132bb895cd google::LogMessage::Fail() @ 0x7f132bb8b433 google::LogMessage::SendToLog() @ 0x7f132bb8915b google::LogMessage::Flush() @ 0x7f132bb8be1e google::LogMessageFatal::~LogMessageFatal() @ 0x7f132c3f2ef1 caffe::ReadNetParamsFromTextFileOrDie() @ 0x7f132c452a05 caffe::Net<>::Net() @ 0x40c747 time() @ 0x4077e8 main @ 0x7f132a31f830 __libc_start_main @ 0x4080b9 _start @ (nil) (unknown) 已放弃 (核心已转储)

corleonechensiyu commented 5 years ago

Error parsing text-format caffe.NetParameter: 954:33: Message type "caffe.LayerParameter" has no field named "yolov3_detection_output_param". 主要是这个错误,build这些没有问题

corleonechensiyu commented 5 years ago

@eric612 这个是缺少一些什么嘛,请问一下怎么解决呀,谢谢!

eric612 commented 5 years ago
corleonechensiyu commented 5 years ago
* 可以試試將 yolov3_detection_output layer 整個移除,這個layer在大部分的情況下並不會占太多時間

* 測試時間建議還是使用我提供的demo script

嗯嗯 好的 谢谢了!

xiangdeyizhang commented 5 years ago

你好,我把您的mobilenet-yoloV3模型转为ncnn模型时,提示无法找到yolov3_detection_output_param层,但是删掉后最后又没有结果输出了,请问这个地方需要修改caffe层还是怎么修改呢? @eric612