How can I define "scopesToKeep" and "scopesToIgnore" nodes of a frozen model?

asked 2019-11-25 01:21:58 -0600

ibrahim_5403 gravatar image

updated 2019-11-25 02:31:31 -0600

berak gravatar image

I run successfully the following files for the model, which was created using TensorFlow API with Inception v2 for MaskRCNN:

https://github.com/opencv/opencv/blob...

https://github.com/opencv/opencv/blob...

However, now I created frozen model from keras model with resnet101. Now I want to modify the above code for my model. How can I know or define the "scopesToKeep" and "scopesToIgnore" nodes?

In the above file case, you use only one input node e.g., "image_tensor", such as: "graph_def = TransformGraph(graph_def, ['image_tensor'], outNodes, ['sort_by_execution_order'])"

But in my model has more than one input node, How can I use here? Will I use all input node such 'input_image', 'input_image_meta', and 'input_anchors'.

Anyone help me please?

Thanks

edit retag flag offensive close merge delete