Registrations Closing Soon for DevOps Certification Training by CloudxLab | Registrations Closing inEnroll Now
The DNN module from CV2 supports reading of tensorflow trained object detection models. We need to load the weight and config for this. For more on this topic refer to https://github.com/opencv/opencv/wiki/TensorFlow-Object-Detection-API
cv2.dnn.readNetFromTensorflow(weights, config) : Reads a network model stored in TensorFlow framework's format.
weights: path to the
.pbfile with binary protobuf description of the network architecture
config: path to the
.pbtxtfile that contains text graph definition in protobuf format. Resulting "Net" object is built by text graph using weights from a binary one that let us make it more flexible.
weights to the path of the model weights file
<< your code comes here >> = "/cxldata/dlcourse/mask_rcnn_model_data/mask_rcnn_frozen_inference_graph.pb"
config to the path of the model configurations file
<< your code comes here >> = "/cxldata/dlcourse/mask_rcnn_model_data/mask_rcnn_inception_v2_coco_2018_01_28.pbtxt"
Read the network model stored in TensorFlow framework’s format by using
cv2.dnn.readNetFromTensorflowand passing the
configs, the file paths of weights and configurations of the model.
net = << your code comes here >>(weights, config)
No hints are availble for this assesment
Answer is not availble for this assesment
Note - Having trouble with the assessment engine? Follow the steps listed here