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

按照readme安装好环境,执行convert_weight.py报错,请各位高手指教,谢谢! #594

Open
junlintianxiatjm opened this issue Jan 20, 2021 · 1 comment

Comments

@junlintianxiatjm
Copy link

2021-01-20 17:01:33.778610: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
Traceback (most recent call last):
File "D:/python-workspace/tensorflow-yolov3-master/convert_weight.py", line 30, in
load = tf.train.import_meta_graph(org_weights_path + '.meta')
AttributeError: module 'tensorflow._api.v2.train' has no attribute 'import_meta_graph'

@junlintianxiatjm junlintianxiatjm changed the title 安装readme安装好环境,执行convert_weight.py报错,请各位高手指教,谢谢! 按照readme安装好环境,执行convert_weight.py报错,请各位高手指教,谢谢! Jan 20, 2021
@Atange1998
Copy link

tensorflow版本过高,降低版本就行了:
#import tensorflow as tf
import tensorflow.compat.v1 as tf
tf.compat.v1.disable_eager_execution()

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

2 participants