caffe-tensorflow icon indicating copy to clipboard operation
caffe-tensorflow copied to clipboard

Running into Assertion Error

Open divyanshpal opened this issue 6 years ago • 4 comments

I am trying to convert a caffee model to tf and run into following error. Traceback (most recent call last): File "convert.py", line 68, in main() File "convert.py", line 64, in main args.phase) File "convert.py", line 27, in convert transformer = TensorFlowTransformer(def_path, caffemodel_path, phase=phase) File "/home/divyansh/face_recognition/caffe2tf/caffe-tensorflow/kaffe/tensorflow/transformer.py", line 221, in init self.load(def_path, data_path, phase) File "/home/divyansh/face_recognition/caffe2tf/caffe-tensorflow/kaffe/tensorflow/transformer.py", line 227, in load graph = GraphBuilder(def_path, phase).build() File "/home/divyansh/face_recognition/caffe2tf/caffe-tensorflow/kaffe/graph.py", line 209, in build layers = self.filter_layers(layers) File "/home/divyansh/face_recognition/caffe2tf/caffe-tensorflow/kaffe/graph.py", line 168, in filter_layers assert layer.name not in filtered_layer_names AssertionError

divyanshpal avatar Mar 05 '19 23:03 divyanshpal

hi, did you solve the problem? I met a similar issue, but another layer name not in graph

tanndx17 avatar Jul 09 '19 08:07 tanndx17

@tanndx17 @divyanshpal hello, i have the same error with yours, do you have any solution?

PonderK avatar Jul 15 '19 08:07 PonderK

@PonderK Not yet, I guess it's the op naming issue in tensorflow

tanndx17 avatar Jul 23 '19 03:07 tanndx17

I ran into the same question of yours and wondered if anyone found the solution

vanessawei726 avatar Oct 27 '21 03:10 vanessawei726