I’m trying to load a custom classifier inside deepstream and the issue that I’m facing right now is as follows,
When I used the deepstream test 2 app to perform inference on the people object and the car color classifier, if I don’t supply the mean file the classifier results remain the same, i.e it classifies all the people as to be of one single color, but when I give the mean file I see the change in classifier’s output.
My main task in hand was to feed in a custom classifier neural network, however I’m failing at the part as to how to generate the mean file to feed in the config file. I have trained my model using caffe and I have the mean file. Deepstream successfully converts the model to engine file and saves it but it fails at parsing the mean file.
On closer inspection I found the content of the mean file generated by the Caffe command,
compute_image_mean -backend=lmdb ./train_lmdb mean.binaryproto
is a binary file and the mean file used in deepstream is different, I was able to open the mean file in an editor (deepstream mean file) and read it’s content but not the one generated from caffe.
So how do we generate this mean file?