Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: unsupported format string passed to tuple.__format__ #186

Open
aliakbar09a opened this issue Apr 2, 2019 · 3 comments
Open

Comments

@aliakbar09a
Copy link

I am trying to convert a caffe model to tensorflow model. Here is the error :

Traceback (most recent call last):
File "convert.py", line 60, in
main()
File "convert.py", line 56, in main
args.phase)
File "convert.py", line 27, in convert
transformer = TensorFlowTransformer(def_path, caffemodel_path, phase=phase)
File "/home/ali/Desktop/Projects/caffe-tensorflow/kaffe/tensorflow/transformer.py", line 221, in init
self.load(def_path, data_path, phase)
File "/home/ali/Desktop/Projects/caffe-tensorflow/kaffe/tensorflow/transformer.py", line 254, in load
print_stderr(self.graph)
File "/home/ali/Desktop/Projects/caffe-tensorflow/kaffe/errors.py", line 7, in print_stderr
sys.stderr.write('%s\n' % msg)
File "/home/ali/Desktop/Projects/caffe-tensorflow/kaffe/graph.py", line 125, in str
tuple(out_shape)))
TypeError: unsupported format string passed to tuple.format

@la735681253
Copy link

i meet the same problem. do you salve it?

@aliakbar09a
Copy link
Author

No, but if you are looking for conversion between different models check out mmdnn repo by Microsoft.

@AbhorsenKnight
Copy link

Hi, I solved the problem by changing to Python 2.7. Hope this helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants