Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

cv::Mat result = ageGenderNet.forward("logits/age/MatMul") do the trick on this net. Note that the layers names are given in the pbtxt or can be retrieve by something like :

std::vector<cv::String> LayerNames= ageNet_.getLayerNames();

for (auto itername : LayerNames)

std::cout << itername << " --- Id : " << ageNet_.getLayerId(itername) << std::endl ;

As already mentionned, the image submit should be centered and normalized (stddev) (BTW i don't know how to properly insert code in an answer...)