YaYaB

Results 37 comments of YaYaB

I did a small experiment based on the example of classification provided here https://www.deepdetect.com/tutorials/imagenet-classifier/. I predicted the *ambulance.jpg* directly and I obtained the following: ``` curl -X POST "http://localhost:8081/predict" -d...

I digged a bit in the code and I found something strange. When the LMDB is created we can see [here](https://github.com/jolibrain/caffe/blob/master/src/caffe/util/io.cpp#L185) that the encoding is specified in the function **EncodeCVMatToDatum**....

@beniz it seems to work for the example https://www.deepdetect.com/tutorials/imagenet-classifier/. However it does not work for our case. We get the following error when doing the prediction : ``` {"status":{"code":500,"msg":"InternalError","dd_code":1007,"dd_msg":"/build/opencv-ys8xiq/opencv-2.4.9.1+dfsg/modules/highgui/src/loadsave.cpp:356: error:...

I understand, yep that might be a good solution

However you may have an issue because the Matrix contains uchar. Removing the mean for cv::Mat might do nasty thing as getting negative value cast to uchar. It might be...

> I digged a bit in the code and I found something strange. > When the LMDB is created we can see [here](https://github.com/jolibrain/caffe/blob/master/src/caffe/util/io.cpp#L185) that the encoding is specified in the...

@beniz I understand your point, however this does not resolve the issue. When you build a machine learning model, you apply the **same preprocessing** (that you learn on the train...

See the difference > I did a small experiment based on the example of classification provided here https://www.deepdetect.com/tutorials/imagenet-classifier/. > > I predicted the _ambulance.jpg_ directly and I obtained the following:...

Thanks for the interesting reading. I'll have a look. Still it does not relate directly to the issue that is: **Predict an image within LMDB or outside LMDB does not...

Here is the fix I've made so that when the prediction is made the data is encoded, then decoded. Moreover, the resize method is set to **CV_INTER_LINEAR** to be strictly...