There is a caffe model which has a python layer, and I can read it in python with caffe.Net(...) command (caffe already compiled with WITH_PYTHON_LAYER=1). However, due to existing python layer, I can't read it using cv2.dnn.readNet in OpenCV4. Because of some attributes available inside OpenCV net data type, I need to have network in that format.
is there anyway for this? if not directly readable in OpenCV, is there any easy way to first read it by caffe read net method, and then cast it to cv2.dnn.readNet type?
this works: net = caffe.Net(model_arch_path, model_weight_path, caffe.TEST),
But this does not: