自前の画像で物体検出を行おうと思ってます。
このTensorFlowの「Object Detection API」で物体検出の自前データを学習する方法を試してみました。
ページ下部の
terminal
1cd /models/research 2export PYTHONPATH=$PYTHONPATH:`pwd`:`pwd`/slim 3python object_detection/model_main.py --pipeline_config_path="./object_detection_tools/config/ssd_inception_v2_coco.config" --model_dir="./saved_model_01" --num_train_steps=10000 --alsologtostderr
を実行したところ下記のエラーが発生しました。
Traceback (most recent call last): File "object_detection/model_main.py", line 109, in <module> tf.app.run() File "/Users/user/anaconda3/lib/python3.6/site-packages/tensorflow/python/platform/app.py", line 40, in run _run(main=main, argv=argv, flags_parser=_parse_flags_tolerate_undef) File "/Users/user/anaconda3/lib/python3.6/site-packages/absl/app.py", line 300, in run _run_main(main, args) File "/Users/user/anaconda3/lib/python3.6/site-packages/absl/app.py", line 251, in _run_main sys.exit(main(argv)) File "object_detection/model_main.py", line 105, in main tf.estimator.train_and_evaluate(estimator, train_spec, eval_specs[0]) File "/Users/user/anaconda3/lib/python3.6/site-packages/tensorflow_estimator/python/estimator/training.py", line 473, in train_and_evaluate return executor.run() File "/Users/user/anaconda3/lib/python3.6/site-packages/tensorflow_estimator/python/estimator/training.py", line 613, in run return self.run_local() File "/Users/user/anaconda3/lib/python3.6/site-packages/tensorflow_estimator/python/estimator/training.py", line 714, in run_local saving_listeners=saving_listeners) File "/Users/user/anaconda3/lib/python3.6/site-packages/tensorflow_estimator/python/estimator/estimator.py", line 367, in train loss = self._train_model(input_fn, hooks, saving_listeners) File "/Users/user/anaconda3/lib/python3.6/site-packages/tensorflow_estimator/python/estimator/estimator.py", line 1158, in _train_model return self._train_model_default(input_fn, hooks, saving_listeners) File "/Users/user/anaconda3/lib/python3.6/site-packages/tensorflow_estimator/python/estimator/estimator.py", line 1185, in _train_model_default input_fn, ModeKeys.TRAIN)) File "/Users/user/anaconda3/lib/python3.6/site-packages/tensorflow_estimator/python/estimator/estimator.py", line 1022, in _get_features_and_labels_from_input_fn self._call_input_fn(input_fn, mode)) File "/Users/user/anaconda3/lib/python3.6/site-packages/tensorflow_estimator/python/estimator/estimator.py", line 1113, in _call_input_fn return input_fn(**kwargs) File "/Users/user/models/research/object_detection/inputs.py", line 504, in _train_input_fn params=params) File "/Users/user/models/research/object_detection/inputs.py", line 607, in train_input batch_size=params['batch_size'] if params else train_config.batch_size) File "/Users/user/models/research/object_detection/builders/dataset_builder.py", line 141, in build config.input_path[:], input_reader_config) File "/Users/user/models/research/object_detection/builders/dataset_builder.py", line 67, in read_dataset '{}'.format(input_files)) RuntimeError: Did not find any input files matching the glob pattern ['./object_detection_tools/data/train/frame????.tfrecord']
環境構築はうまくいったのですが、これらのエラーの解決法がどうしてもわかりませんのでご教授お願いいたします。
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。