-
Notifications
You must be signed in to change notification settings - Fork 964
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
error: Tensorflow to caffe "caffe_emitter:emit_Constant" doesn't handle one dim tensor. #599
Comments
Hi @Alnlll , please use the latest code to have a try, thanks! |
@rainLiuplus thanks for responding!! shape1: dim {
size: 2
}
shape2: [2]
Traceback (most recent call last):
File "/usr/local/bin/mmconvert", line 11, in <module>
load_entry_point('mmdnn==0.2.4', 'console_scripts', 'mmconvert')()
File "/usr/local/lib/python3.5/dist-packages/mmdnn/conversion/_script/convert.py", line 108, in _main
ret = IRToCode._convert(code_args)
File "/usr/local/lib/python3.5/dist-packages/mmdnn/conversion/_script/IRToCode.py", line 61, in _convert
emitter.run(args.dstModelPath, args.dstWeightPath, args.phase)
File "/usr/local/lib/python3.5/dist-packages/mmdnn/conversion/caffe/caffe_emitter.py", line 144, in run
super(CaffeEmitter, self).run(dstNetworkPath, dstWeightPath, phase)
File "/usr/local/lib/python3.5/dist-packages/mmdnn/conversion/common/DataStructure/emitter.py", line 22, in run
self.save_code(dstNetworkPath, phase)
File "/usr/local/lib/python3.5/dist-packages/mmdnn/conversion/common/DataStructure/emitter.py", line 59, in save_code
code = self.gen_code(phase)
File "/usr/local/lib/python3.5/dist-packages/mmdnn/conversion/caffe/caffe_emitter.py", line 132, in gen_code
func(current_node)
File "/usr/local/lib/python3.5/dist-packages/mmdnn/conversion/caffe/caffe_emitter.py", line 433, in emit_Constant
shape[1],
IndexError: list index out of range And checked the emit_Constant in caffe_emmiter, seems unmodified. |
rainLiuplus
pushed a commit
to rainLiuplus/MMdnn
that referenced
this issue
Mar 4, 2019
Merged
rainLiuplus
pushed a commit
to rainLiuplus/MMdnn
that referenced
this issue
Mar 4, 2019
@rainLiuplus Thanks for helping. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Enviroment
Platform (like ubuntu 16.04/win10): ubuntu 16.04
Python version: python3.5
Source framework with version (like Tensorflow 1.4.1 with GPU): Tensorflow 1.13
Destination framework with version (like CNTK 2.3 with GPU): caffe
Pre-trained model path (webpath or webdisk path):
Running scripts:
Problem
Trying to convert a se_inception_resnetv1 from tensorflow to caffe(using master mmdnn), got an IndexError like this:
and got such shape info by adding some print code:
Any idea about this?
The text was updated successfully, but these errors were encountered: