1 | initial version |
The best workaround has been the following setup:
Once the network is transformed I used the call dnn::blobFromImage(img, 1.0f/128, (299,299),(128,128,128), true,false)
Also preprocessd image as follows:
img /=255 img -=0.5 img *= 2