Unable to load custom Tensorflow model based on rfcn_resnet101_coco
I used rfcn_resnet101_coco
as a base to fine tune my model in tensorflow. However when I load this into OpenCV I get the following error:
OpenCV Error: Unspecified error (Unknown layer type Cast in op ToFloat)
This issue suggests passing the .pbtxt
file into readNetFromTensorflow
. A simple google search is enough to find ssd_mobilenet_v1_coco.pbtxt
but I am unable to find this file for the specific model I am using.
Please guide me on how to go about loading my fine tuned model into OpenCV or creating the .pbtxt
file.
Ah, that makes sense. If you reply with an answer I can mark it as accepted.