solrex / caffe-mobile

Optimized (for size and speed) Caffe lib for iOS and Android with out-of-the-box demo APP.
Other
317 stars 121 forks source link

Add support for both prototxt and protobin filetype #14

Closed yanghuanflc closed 7 years ago

yanghuanflc commented 7 years ago

Would it be possible for you to add support for both prototxt and protobin filetype?

yanghuanflc commented 7 years ago

I'm doing this by adding "add_definitions(-DUSE_PROTOBUF_FULL)" in CMakeLists.txt and change "option optimize_for = SPEED;" in caffe.proto. Am I right?

solrex commented 7 years ago

Yes, you're right. But the final lib size is much larger than the building for .protobin format.

yanghuanflc commented 7 years ago

I think you are right, I choose to use protobin at last.