kpzhang93 / MTCNN_face_detection_alignment

Joint Face Detection and Alignment using Multi-task Cascaded Convolutional Neural Networks
MIT License
2.8k stars 1.01k forks source link

Model - param has no field named "transpose" and "predict_box_param" #7

Closed atoum84 closed 7 years ago

atoum84 commented 7 years ago

Hello,

When I execute MTCNN on linux, some fields are not recognizing by the caffe library and I have the followings errors :

_[libprotobuf ERROR google/protobuf/text_format.cc:245] Error parsing text-format caffe.NetParameter: 12:12: Message type "caffe.MemoryDataParameter" has no field named "transpose". WARNING: Logging before InitGoogleLogging() is written to STDERR F1112 10:53:38.052264 3463 upgrade_proto.cpp:79] Check failed: ReadProtoFromTextFile(paramfile, param) Failed to parse NetParameter file: det1-memory.prototxt Check failure stack trace:

This error is related to the proto "memory_data_param" which has no "transpose" field

When I remove this field of the model "det1-memory.prototxt", a new error appear :

_[libprotobuf ERROR google/protobuf/text_format.cc:245] Error parsing text-format caffe.NetParameter: 196:21: Message type "caffe.LayerParameter" has no field named "predict_box_param". WARNING: Logging before InitGoogleLogging() is written to STDERR F1112 10:55:39.076514 3523 upgrade_proto.cpp:79] Check failed: ReadProtoFromTextFile(paramfile, param) Failed to parse NetParameter file: det1-memory.prototxt Check failure stack trace:

This time, caffe don't know the layer of type "PredictBox".

If I remove this layer of the file, the model success to load but at the runtime, I have the following error :

_F1112 10:37:54.543467 3165 data_transformer.cpp:290] Check failed: imgheight == height (360 vs. 256)

I think to resolve the problem I need to modify the proto layers of caffe but I don't know exactly how.

I use :

atoum84 commented 7 years ago

Find the missing layers elements in https://github.com/happynear/caffe-windows/tree/ms

raullalves commented 5 years ago

I have the same problem. How did you manage to solve it ?