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

mac Python3.7,在运行train_image_classifier.py这一步时,总是出现这个报错,是什么原因,该如何处理 #75

Open
PiseyYou opened this issue Mar 22, 2019 · 7 comments

Comments

@PiseyYou
Copy link

Traceback (most recent call last):
File "/Volumes/Working/download/Deep-Learning-21-Examples-master/chapter_3/slim/train_image_classifier.py", line 573, in
tf.app.run()
File "/usr/local/lib/python3.7/site-packages/tensorflow/python/platform/app.py", line 125, in run
_sys.exit(main(argv))
File "/Volumes/Working/download/Deep-Learning-21-Examples-master/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

@wl4135
Copy link

wl4135 commented Jun 4, 2019

我的也是这样 怎么解决?

@jiashihuigithub
Copy link

没有设置dataset_dir参数

@zhonglin516
Copy link

@jiashihuigithub
dataset_dir参数参数怎么设置,我是按照书上的设置文件夹路径的。用的命令也是书上的。
python train_image_classifier.py
--train_dir=satellite/train_dir
--dataset_name=satellite
--dataset_split_name=train
--dataset_dir=satellite/data
--model_name=inception_v3
--checkpoint_path=satellite/pretrained/inception_v3.ckpt
--checkpoint_exclude_scopes=InceptionV3/Logits,InceptionV3/AuxLogits
--trainable_scopes=InceptionV3/Logits,InceptionV3/AuxLogits
--max_number_of_steps=100000
--batch_size=32
--learning_rate=0.001
--learning_rate_decay_type=fixed
--save_inerval_secs=300
--save_summaries_secs=2
--log_enery_n_steps=10
--optimizer=rmsprop
--weight_decay=0.00004

@zhonglin516
Copy link

@hzy46

@jiashihuigithub
dataset_dir参数参数怎么设置,我是按照书上的设置文件夹路径的。用的命令也是书上的。
python train_image_classifier.py
--train_dir=satellite/train_dir
--dataset_name=satellite
--dataset_split_name=train
--dataset_dir=satellite/data
--model_name=inception_v3
--checkpoint_path=satellite/pretrained/inception_v3.ckpt
--checkpoint_exclude_scopes=InceptionV3/Logits,InceptionV3/AuxLogits
--trainable_scopes=InceptionV3/Logits,InceptionV3/AuxLogits
--max_number_of_steps=100000
--batch_size=32
--learning_rate=0.001
--learning_rate_decay_type=fixed
--save_inerval_secs=300
--save_summaries_secs=2
--log_enery_n_steps=10
--optimizer=rmsprop
--weight_decay=0.00004

@jiashihuigithub
Copy link

@jiashihuigithub
dataset_dir参数参数怎么设置,我是按照书上的设置文件夹路径的。用的命令也是书上的。
python train_image_classifier.py
--train_dir=satellite/train_dir
--dataset_name=satellite
--dataset_split_name=train
--dataset_dir=satellite/data
--model_name=inception_v3
--checkpoint_path=satellite/pretrained/inception_v3.ckpt
--checkpoint_exclude_scopes=InceptionV3/Logits,InceptionV3/AuxLogits
--trainable_scopes=InceptionV3/Logits,InceptionV3/AuxLogits
--max_number_of_steps=100000
--batch_size=32
--learning_rate=0.001
--learning_rate_decay_type=fixed
--save_inerval_secs=300
--save_summaries_secs=2
--log_enery_n_steps=10
--optimizer=rmsprop
--weight_decay=0.00004

各个参数之间没有换行吧?有这个文件夹吧?

@zhonglin516
Copy link

@jiashihuigithub
命令跟书上的一样,文件夹也是按照书本上建的。 环境Ubuntu16.04 tensorflow-GPU 1.13.1. train_image_classifier.py代码要不要修改?

python train_image_classifier.py
--train_dir=satellite/train_dir
--dataset_name=satellite \
--dataset_split_name=train
--dataset_dir=satellite/data
--model_name=inception_v3
--checkpoint_path=satellite/pretrained/inception_v3.ckpt
--checkpoint_exclude_scopes=InceptionV3/Logits,InceptionV3/AuxLogits
--trainable_scopes=InceptionV3/Logits,InceptionV3/AuxLogits
--max_number_of_steps=100000
--batch_size=32
--learning_rate=0.001
--learning_rate_decay_type=fixed
--save_inerval_secs=300
--save_summaries_secs=2
--log_enery_n_steps=10
--optimizer=rmsprop
--weight_decay=0.00004

@hehe771
Copy link

hehe771 commented Feb 16, 2021

@jiashihuigithub
dataset_dir参数参数怎么设置,我是按照书上的设置文件夹路径的。用的命令也是书上的。
python train_image_classifier.py
--train_dir=satellite/train_dir
--dataset_name=satellite
--dataset_split_name=train
--dataset_dir=satellite/data
--model_name=inception_v3
--checkpoint_path=satellite/pretrained/inception_v3.ckpt
--checkpoint_exclude_scopes=InceptionV3/Logits,InceptionV3/AuxLogits
--trainable_scopes=InceptionV3/Logits,InceptionV3/AuxLogits
--max_number_of_steps=100000
--batch_size=32
--learning_rate=0.001
--learning_rate_decay_type=fixed
--save_inerval_secs=300
--save_summaries_secs=2
--log_enery_n_steps=10
--optimizer=rmsprop
--weight_decay=0.00004

各个参数之间没有换行吧?有这个文件夹吧?

这些命令要在哪里输入呢?

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

5 participants