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

[Help] Errors occur when I convert my tensorflow model to pytorch one #605

Closed
Raise-me-up opened this Issue Mar 5, 2019 · 1 comment

Comments

Projects
None yet
1 participant
@Raise-me-up
Copy link

Raise-me-up commented Mar 5, 2019

Platform (like ubuntu 16.04/win10):
win10

Python version:
Python 3.6.1

Source framework with version (like Tensorflow 1.4.1 with GPU):
Tensorflow 1.12.0 with CPU

Destination framework with version (like CNTK 2.3 with GPU):
torch 0.4.1

Pre-trained model path (webpath or webdisk path):
链接: https://pan.baidu.com/s/1dR_RgP8ICxhR-1jWZcbacg 提取码: 6s5j

Running scripts:
mmconvert -sf tensorflow -in N4-SNR15-model-78000.meta -iw N4-SNR15-model-78000 --dstNodeName loss/cost -df pytorch -om N4-SNR15-model-78000.pkl

@Raise-me-up

This comment has been minimized.

Copy link
Author

Raise-me-up commented Mar 5, 2019

Error messages:
Traceback (most recent call last):
File "e:\anaconda\installation\lib\runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "e:\anaconda\installation\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "E:\Anaconda\installation\Scripts\mmconvert.exe_main
.py", line 9, in
File "e:\anaconda\installation\lib\site-packages\mmdnn\conversion_script\convert.py", line 102, in _main
ret = convertToIR._convert(ir_args)
File "e:\anaconda\installation\lib\site-packages\mmdnn\conversion_script\convertToIR.py", line 115, in _convert
parser.run(args.dstPath)
File "e:\anaconda\installation\lib\site-packages\mmdnn\conversion\common\DataStructure\parser.py", line 22, in run
self.gen_IR()
File "e:\anaconda\installation\lib\site-packages\mmdnn\conversion\tensorflow\tensorflow_parser.py", line 420, in gen_IR
func(current_node)
File "e:\anaconda\installation\lib\site-packages\mmdnn\conversion\tensorflow\tensorflow_parser.py", line 515, in rename_Placeholder
IR_node.attr['shape'].shape.dim[0].size = -1
IndexError: list index out of range

rainLiuplus pushed a commit to rainLiuplus/MMdnn that referenced this issue Mar 6, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.