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

第三章的训练那里出现报错 该怎么解决? #80

Open
wl4135 opened this issue Jun 4, 2019 · 3 comments
Open

第三章的训练那里出现报错 该怎么解决? #80

wl4135 opened this issue Jun 4, 2019 · 3 comments

Comments

@wl4135
Copy link

wl4135 commented Jun 4, 2019

If you depend on functionality not listed there, please file an issue.

Traceback (most recent call last):
File "E:/TensorFlowfightGoogle/21project/chapter_3/slim/train_image_classifier.py", line 574, in
tf.app.run()
File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\platform\app.py", line 125, in run
_sys.exit(main(argv))
File "E:/TensorFlowfightGoogle/21project/chapter_3/slim/train_image_classifier.py", line 382, in main
raise ValueError('You must supply the dataset directory with --dataset_dir')
ValueError: You must supply the dataset directory with --dataset_dir

Process finished with exit code 1

@karlyf
Copy link

karlyf commented Feb 4, 2020

运行时没设参数

@huangzy97
Copy link

按照书上的方法加参数运行还是报错
ERROR:tensorflow:==================================
Object was never used (type <class 'tensorflow.python.framework.ops.Tensor'>):
<tf.Tensor 'init_ops/report_uninitialized_variables/boolean_mask/GatherV2:0' shape=(?,) dtype=string>
If you want to mark it as used call its "mark_used()" method.
It was originally created here:
File "train_image_classifier.py", line 573, in
tf.app.run() File "E:\anaconda3\lib\site-packages\tensorflow\python\platform\app.py", line 125, in run
_sys.exit(main(argv)) File "train_image_classifier.py", line 569, in main
sync_optimizer=optimizer if FLAGS.sync_replicas else None) File "E:\anaconda3\lib\site-packages\tensorflow\contrib\slim\python\slim\learning.py", line 791, in train
should_retry = True File "E:\anaconda3\lib\site-packages\tensorflow\python\util\tf_should_use.py", line 193, in wrapped
return _add_should_use_warning(fn(*args, **kwargs))

@hehe771
Copy link

hehe771 commented Feb 16, 2021

运行时没设参数

请问书上给的命令应该在哪里运行呢?

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

4 participants