Ask Your Question
1

Unable to load custom Tensorflow model based on rfcn_resnet101_coco

asked 2018-02-11 11:52:40 -0600

affanshahid gravatar image

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.

edit retag flag offensive close merge delete

Comments

Ah, that makes sense. If you reply with an answer I can mark it as accepted.

affanshahid gravatar imageaffanshahid ( 2018-02-11 13:34:47 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2018-02-11 12:03:12 -0600

dkurt gravatar image

@affanshahid I think you problem is related to this issue: https://github.com/opencv/opencv/issu... . Only SSD models from TensorFlow Object Detection API is supported for now. There is a wiki page describes how to work with them.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2018-02-11 11:52:40 -0600

Seen: 341 times

Last updated: Feb 11 '18