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

Porting network caffe on mobile caffe. #63

Open eaangi opened 5 years ago

eaangi commented 5 years ago

Hello, I want to try your lib-mobile for my thesis and have some questions. I'm glad you can help me. I manage my model in MATLAB and it works. I tried your Android example and it works fine.

Later I tried to:

Before proceeding to the inference, I transformed the image acquired by the camera into a matrix w x h x 3 (rgb) in order to respect the input layer.

But when I make an inference it all crashes, because the input must be a bytearray.

Where am I wrong? Why is there this difference compared to caffe for pc? should the library turn the image not into a matrix but into a bytearray array with dim (wxhx3) ?

Thanks in advance for your help..