level 1
YourZhou66
楼主
最近在学习使用tensorflow object detection api ,使用github的预训练模型ssd_mobilenet_v2_coco训练自己的数据集,得到PB模型后,PB模型通过检测时可以使用的,想通过opencv dnn模块tf_text_graph_ssd.py生成对应的pbtxt文件,生成错误,结果如下,希望能给点帮助

试验用ssd_mobilenet_v2_coco自带的PB模型文件通过tf_text_graph_ssd.py生成pbtxt文件是可以的,成功结果是这样

问题困扰了挺久的,不同如何解决这个错误
Traceback (most recent call last):
File "tf_text_graph_ssd.py", line 367, in <module>
createSSDGraph(args.input, args.config, args.output)
File "tf_text_graph_ssd.py", line 232, in createSSDGraph
assert(graph_def.node[0].op == 'Placeholder')
AssertionError
2019年05月11日 07点05分
1

试验用ssd_mobilenet_v2_coco自带的PB模型文件通过tf_text_graph_ssd.py生成pbtxt文件是可以的,成功结果是这样
问题困扰了挺久的,不同如何解决这个错误Traceback (most recent call last):
File "tf_text_graph_ssd.py", line 367, in <module>
createSSDGraph(args.input, args.config, args.output)
File "tf_text_graph_ssd.py", line 232, in createSSDGraph
assert(graph_def.node[0].op == 'Placeholder')
AssertionError