Open abhigoku10 opened 5 years ago
Hi @abhigoku10,
Is your Faster R-CNN based on a model before 2018_01_28? If not 2018_01_28 model, the split nodes will differ, probably because the graph is different. I do not know the exact places without looking at the graph. Do you know which graph is based?
@naisy hi Naisy ya we trained our faster rcnn on tensorflow1.8, can share the graph pls provide the email id or link .
Hi @abhigoku10,
My mail address is takanashi@gclue.jp
I also got the same error when converting my own model as the above. @abhigoku10 how did you solve the issue?
@tesfagabir Hi i tried couple of ways i was not able to solve it , so i paused the activity . Do let me know if you solve that activity
@naisy Hi Nasy , i tried splitting the graph for FRCNN i had used the TF to generate the model , since squeeze 2 and 3 are not there so i have commented the following section . pls find the code section below
import tensorflow as tf from tensorflow.core.framework import graph_pb2 import copy
class LoadFrozenGraph(): """ LOAD FROZEN GRAPH """ def init(self,cfg,sliptmodel=True):
model_path ='pth to the modelfile' split_model = True print(model_path) print(split_model) b = LoadFrozenGraph(model_path) graph2 = b.load_graph()
i get up this error File "/home/abilash-sk/.local/lib/python3.5/site-packages/tensorflow/python/framework/importer.py", line 663, in import_graph_def % (input_name,))) ValueError: graph_def is invalid at node 'SecondStageBoxPredictor/ClassPredictor/MatMul': Input tensor 'SecondStageBoxPredictor/Flatten/flatten/Reshape:0' not found in graph_def..