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

error exits when rename.py is run #108

Open
jwnirvana opened this issue Oct 20, 2019 · 0 comments
Open

error exits when rename.py is run #108

jwnirvana opened this issue Oct 20, 2019 · 0 comments

Comments

@jwnirvana
Copy link

很棒的工作,但是我遇到个小问题,搞了很久了

(v1) zsl@user:~/wj/v1$ python rename.py
Traceback (most recent call last):
File "rename.py", line 14, in
load = tf.train.import_meta_graph(org_weights_path + '.meta')
File "/home/zhaoshiliang/miniconda3/envs/v1/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 1955, in import_meta_graph
**kwargs)
File "/home/zhaoshiliang/miniconda3/envs/v1/lib/python2.7/site-packages/tensorflow/python/framework/meta_graph.py", line 743, in import_scoped_meta_graph
producer_op_list=producer_op_list)
File "/home/zhaoshiliang/miniconda3/envs/v1/lib/python2.7/site-packages/tensorflow/python/util/deprecation.py", line 432, in new_func
return func(*args, **kwargs)
File "/home/zhaoshiliang/miniconda3/envs/v1/lib/python2.7/site-packages/tensorflow/python/framework/importer.py", line 460, in import_graph_def
_RemoveDefaultAttrs(op_dict, producer_op_list, graph_def)
File "/home/zhaoshiliang/miniconda3/envs/v1/lib/python2.7/site-packages/tensorflow/python/framework/importer.py", line 227, in _RemoveDefaultAttrs
op_def = op_dict[node.op]
KeyError: u'LeakyRelu'

我把环境搭的合作者一模一样了。我搞了好久了,希望有人能告知我怎么改,或者能分享一下rename后的预训练模型也可以,谢谢!

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

1 participant