DNN LayerFactory

asked 2018-06-14 03:16:48 -0600

SEbert gravatar image

Hi, I am using the dnn module of opencv 3.4.1 with Python 3.5 to deploy nets trained with keras/tensorflow. Some simple models can be deployed in python and c++ with opencv successfully. Now, I would like to implement the missing ClipByValue node/layer and register this layer in the dnn module with python. I am following this tutorial. Unfortuneatly I do not find the function dnn_registerLayer.

import cv2
cv2.dnn_registerLayer(...)

results in

AttributeError: module 'cv2.cv2' has no attribute 'dnn_registerLayer'

where do I find the module for register custom layers in Python?

edit retag flag offensive close merge delete

Comments

@SEbert, perhaps you need to update OpenCV. Try to build pythob binding from source using the latest state of master branch or 3.4 branch.

dkurt gravatar imagedkurt ( 2018-06-14 03:28:01 -0600 )edit