First time here? Check out the FAQ!
answered 2019-06-11 18:25:12 -0600
Try adding
genderNet.setPreferableTarget(DNN_TARGET_OPENCL);
If you have an Intel GPU it might speed up the calculations. Otherwise it will use the CPU which is rather slow with deep neural networks.