Converting data... Saving source... Traceback (most recent call last): File "convert.py", line 60, in <module> main() File "convert.py", line 56, in main args.phase) File "convert.py", line 37, in convert src_out.write(transformer.transform_source().encode('utf-8')) File "/home/zdaiot/Code/caffe-tensorflow/kaffe/tensorflow/transformer.py", line 282, in transform_source chains = mapper.map() File "/home/zdaiot/Code/caffe-tensorflow/kaffe/graph.py", line 288, in map mapped_chains.append(self.map_chain(chain)) File "/home/zdaiot/Code/caffe-tensorflow/kaffe/graph.py", line 292, in map_chain return [self.map_node(node) for node in chain] File "/home/zdaiot/Code/caffe-tensorflow/kaffe/graph.py", line 292, in <listcomp> return [self.map_node(node) for node in chain] File "/home/zdaiot/Code/caffe-tensorflow/kaffe/graph.py", line 296, in map_node mapped_node = map_func(node) File "/home/zdaiot/Code/caffe-tensorflow/kaffe/tensorflow/transformer.py", line 149, in map_batch_norm scale_offset = len(node.data) == 4 TypeError: object of type 'NoneType' has no len()
解决方法为 I got it to work by replacing scale_offset= len(node.data) == 4 with scale_offset = len(node.output_shape) == 4 in transformer.py
使用Python2的时候,报错
1
TypeError: __new__() got an unexpected keyword argument 'serialized_options'