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 when I try to train my data,please help #33

Open
manstory007 opened this issue Mar 14, 2020 · 0 comments
Open

Error when I try to train my data,please help #33

manstory007 opened this issue Mar 14, 2020 · 0 comments

Comments

@manstory007
Copy link

(tensorflow1) C:\tensorflow1\models\research\object_detection>python legacy/train.py --logtostderr --train_dir=training/ --pipeline_config_path=training/faster_rcnn_inception_v2_pets.config
2020-03-13 22:45:17.757807: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cudart64_100.dll
WARNING:tensorflow:
The TensorFlow contrib module will not be included in TensorFlow 2.0.
For more information, please see:

WARNING:tensorflow:From legacy/train.py:56: The name tf.logging.set_verbosity is deprecated. Please use tf.compat.v1.logging.set_verbosity instead.

WARNING:tensorflow:From legacy/train.py:56: The name tf.logging.INFO is deprecated. Please use tf.compat.v1.logging.INFO instead.

WARNING:tensorflow:From legacy/train.py:185: The name tf.app.run is deprecated. Please use tf.compat.v1.app.run instead.

WARNING:tensorflow:From C:\Users\Admin\Anaconda3\envs\tensorflow1\lib\site-packages\absl\app.py:250: main (from main) is deprecated and will be removed in a future version.
Instructions for updating:
Use object_detection/model_main.py.
W0313 22:45:21.016680 11384 deprecation.py:323] From C:\Users\Admin\Anaconda3\envs\tensorflow1\lib\site-packages\absl\app.py:250: main (from main) is deprecated and will be removed in a future version.
Instructions for updating:
Use object_detection/model_main.py.
WARNING:tensorflow:From legacy/train.py:91: The name tf.gfile.MakeDirs is deprecated. Please use tf.io.gfile.makedirs instead.

W0313 22:45:21.017342 11384 module_wrapper.py:139] From legacy/train.py:91: The name tf.gfile.MakeDirs is deprecated. Please use tf.io.gfile.makedirs instead.

WARNING:tensorflow:From C:\tensorflow1\models\research\object_detection\utils\config_util.py:102: The name tf.gfile.GFile is deprecated. Please use tf.io.gfile.GFile instead.

W0313 22:45:21.018340 11384 module_wrapper.py:139] From C:\tensorflow1\models\research\object_detection\utils\config_util.py:102: The name tf.gfile.GFile is deprecated. Please use tf.io.gfile.GFile instead.

WARNING:tensorflow:From legacy/train.py:96: The name tf.gfile.Copy is deprecated. Please use tf.io.gfile.copy instead.

W0313 22:45:21.021453 11384 module_wrapper.py:139] From legacy/train.py:96: The name tf.gfile.Copy is deprecated. Please use tf.io.gfile.copy instead.

WARNING:tensorflow:From C:\tensorflow1\models\research\object_detection\legacy\trainer.py:267: create_global_step (from tensorflow.contrib.framework.python.ops.variables) is deprecated and will be removed in a future version.
Instructions for updating:
Please switch to tf.train.create_global_step
W0313 22:45:21.032255 11384 deprecation.py:323] From C:\tensorflow1\models\research\object_detection\legacy\trainer.py:267: create_global_step (from tensorflow.contrib.framework.python.ops.variables) is deprecated and will be removed in a future version.
Instructions for updating:
Please switch to tf.train.create_global_step
WARNING:tensorflow:From C:\tensorflow1\models\research\object_detection\data_decoders\tf_example_decoder.py:182: The name tf.FixedLenFeature is deprecated. Please use tf.io.FixedLenFeature instead.

W0313 22:45:21.034236 11384 module_wrapper.py:139] From C:\tensorflow1\models\research\object_detection\data_decoders\tf_example_decoder.py:182: The name tf.FixedLenFeature is deprecated. Please use tf.io.FixedLenFeature instead.

WARNING:tensorflow:From C:\tensorflow1\models\research\object_detection\data_decoders\tf_example_decoder.py:197: The name tf.VarLenFeature is deprecated. Please use tf.io.VarLenFeature instead.

W0313 22:45:21.038151 11384 module_wrapper.py:139] From C:\tensorflow1\models\research\object_detection\data_decoders\tf_example_decoder.py:197: The name tf.VarLenFeature is deprecated. Please use tf.io.VarLenFeature instead.

Traceback (most recent call last):
File "legacy/train.py", line 185, in
tf.app.run()
File "C:\Users\Admin\Anaconda3\envs\tensorflow1\lib\site-packages\tensorflow_core\python\platform\app.py", line 40, in run
_run(main=main, argv=argv, flags_parser=_parse_flags_tolerate_undef)
File "C:\Users\Admin\Anaconda3\envs\tensorflow1\lib\site-packages\absl\app.py", line 299, in run
_run_main(main, args)
File "C:\Users\Admin\Anaconda3\envs\tensorflow1\lib\site-packages\absl\app.py", line 250, in _run_main
sys.exit(main(argv))
File "C:\Users\Admin\Anaconda3\envs\tensorflow1\lib\site-packages\tensorflow_core\python\util\deprecation.py", line 324, in new_func
return func(*args, **kwargs)
File "legacy/train.py", line 181, in main
graph_hook_fn=graph_rewriter_fn)
File "C:\tensorflow1\models\research\object_detection\legacy\trainer.py", line 281, in train
train_config.prefetch_queue_capacity, data_augmentation_options)
File "C:\tensorflow1\models\research\object_detection\legacy\trainer.py", line 60, in create_input_queue
tensor_dict = create_tensor_dict_fn()
File "legacy/train.py", line 122, in get_next
dataset_builder.build(config)).get_next()
File "C:\tensorflow1\models\research\object_detection\builders\dataset_builder.py", line 130, in build
num_additional_channels=input_reader_config.num_additional_channels)
File "C:\tensorflow1\models\research\object_detection\data_decoders\tf_example_decoder.py", line 319, in init
default_value=''),
File "C:\tensorflow1\models\research\object_detection\data_decoders\tf_example_decoder.py", line 64, in init
label_map_proto_file, use_display_name=False)
File "C:\tensorflow1\models\research\object_detection\utils\label_map_util.py", line 172, in get_label_map_dict
label_map = load_labelmap(label_map_path_or_proto)
File "C:\tensorflow1\models\research\object_detection\utils\label_map_util.py", line 139, in load_labelmap
label_map_string = fid.read()
File "C:\Users\Admin\Anaconda3\envs\tensorflow1\lib\site-packages\tensorflow_core\python\lib\io\file_io.py", line 122, in read
self._preread_check()
File "C:\Users\Admin\Anaconda3\envs\tensorflow1\lib\site-packages\tensorflow_core\python\lib\io\file_io.py", line 84, in _preread_check
compat.as_bytes(self.__name), 1024 * 512)
tensorflow.python.framework.errors_impl.NotFoundError: NewRandomAccessFile failed to Create/Open: C:/tensorflow1/models/research/object_detection/training/labelmap.pbtxt : The system cannot find the file specified.
; No such file or directory

(tensorflow1) C:\tensorflow1\models\research\object_detection>python legacy/train.py --logtostderr --train_dir=training/ --pipeline_config_path=training/faster_rcnn_inception_v2_pets.config
2020-03-13 23:50:35.786285: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cudart64_100.dll
WARNING:tensorflow:
The TensorFlow contrib module will not be included in TensorFlow 2.0.
For more information, please see:

WARNING:tensorflow:From legacy/train.py:56: The name tf.logging.set_verbosity is deprecated. Please use tf.compat.v1.logging.set_verbosity instead.

WARNING:tensorflow:From legacy/train.py:56: The name tf.logging.INFO is deprecated. Please use tf.compat.v1.logging.INFO instead.

WARNING:tensorflow:From legacy/train.py:185: The name tf.app.run is deprecated. Please use tf.compat.v1.app.run instead.

WARNING:tensorflow:From C:\Users\Admin\Anaconda3\envs\tensorflow1\lib\site-packages\absl\app.py:250: main (from main) is deprecated and will be removed in a future version.
Instructions for updating:
Use object_detection/model_main.py.
W0313 23:50:39.274301 5540 deprecation.py:323] From C:\Users\Admin\Anaconda3\envs\tensorflow1\lib\site-packages\absl\app.py:250: main (from main) is deprecated and will be removed in a future version.
Instructions for updating:
Use object_detection/model_main.py.
WARNING:tensorflow:From legacy/train.py:91: The name tf.gfile.MakeDirs is deprecated. Please use tf.io.gfile.makedirs instead.

W0313 23:50:39.275606 5540 module_wrapper.py:139] From legacy/train.py:91: The name tf.gfile.MakeDirs is deprecated. Please use tf.io.gfile.makedirs instead.

WARNING:tensorflow:From C:\tensorflow1\models\research\object_detection\utils\config_util.py:102: The name tf.gfile.GFile is deprecated. Please use tf.io.gfile.GFile instead.

W0313 23:50:39.277838 5540 module_wrapper.py:139] From C:\tensorflow1\models\research\object_detection\utils\config_util.py:102: The name tf.gfile.GFile is deprecated. Please use tf.io.gfile.GFile instead.

WARNING:tensorflow:From legacy/train.py:96: The name tf.gfile.Copy is deprecated. Please use tf.io.gfile.copy instead.

W0313 23:50:39.279833 5540 module_wrapper.py:139] From legacy/train.py:96: The name tf.gfile.Copy is deprecated. Please use tf.io.gfile.copy instead.

WARNING:tensorflow:From C:\tensorflow1\models\research\object_detection\legacy\trainer.py:267: create_global_step (from tensorflow.contrib.framework.python.ops.variables) is deprecated and will be removed in a future version.
Instructions for updating:
Please switch to tf.train.create_global_step
W0313 23:50:39.298066 5540 deprecation.py:323] From C:\tensorflow1\models\research\object_detection\legacy\trainer.py:267: create_global_step (from tensorflow.contrib.framework.python.ops.variables) is deprecated and will be removed in a future version.
Instructions for updating:
Please switch to tf.train.create_global_step
WARNING:tensorflow:From C:\tensorflow1\models\research\object_detection\data_decoders\tf_example_decoder.py:182: The name tf.FixedLenFeature is deprecated. Please use tf.io.FixedLenFeature instead.

W0313 23:50:39.306201 5540 module_wrapper.py:139] From C:\tensorflow1\models\research\object_detection\data_decoders\tf_example_decoder.py:182: The name tf.FixedLenFeature is deprecated. Please use tf.io.FixedLenFeature instead.

WARNING:tensorflow:From C:\tensorflow1\models\research\object_detection\data_decoders\tf_example_decoder.py:197: The name tf.VarLenFeature is deprecated. Please use tf.io.VarLenFeature instead.

W0313 23:50:39.312214 5540 module_wrapper.py:139] From C:\tensorflow1\models\research\object_detection\data_decoders\tf_example_decoder.py:197: The name tf.VarLenFeature is deprecated. Please use tf.io.VarLenFeature instead.

Traceback (most recent call last):
File "legacy/train.py", line 185, in
tf.app.run()
File "C:\Users\Admin\Anaconda3\envs\tensorflow1\lib\site-packages\tensorflow_core\python\platform\app.py", line 40, in run
_run(main=main, argv=argv, flags_parser=_parse_flags_tolerate_undef)
File "C:\Users\Admin\Anaconda3\envs\tensorflow1\lib\site-packages\absl\app.py", line 299, in run
_run_main(main, args)
File "C:\Users\Admin\Anaconda3\envs\tensorflow1\lib\site-packages\absl\app.py", line 250, in _run_main
sys.exit(main(argv))
File "C:\Users\Admin\Anaconda3\envs\tensorflow1\lib\site-packages\tensorflow_core\python\util\deprecation.py", line 324, in new_func
return func(*args, **kwargs)
File "legacy/train.py", line 181, in main
graph_hook_fn=graph_rewriter_fn)
File "C:\tensorflow1\models\research\object_detection\legacy\trainer.py", line 281, in train
train_config.prefetch_queue_capacity, data_augmentation_options)
File "C:\tensorflow1\models\research\object_detection\legacy\trainer.py", line 60, in create_input_queue
tensor_dict = create_tensor_dict_fn()
File "legacy/train.py", line 122, in get_next
dataset_builder.build(config)).get_next()
File "C:\tensorflow1\models\research\object_detection\builders\dataset_builder.py", line 130, in build
num_additional_channels=input_reader_config.num_additional_channels)
File "C:\tensorflow1\models\research\object_detection\data_decoders\tf_example_decoder.py", line 319, in init
default_value=''),
File "C:\tensorflow1\models\research\object_detection\data_decoders\tf_example_decoder.py", line 64, in init
label_map_proto_file, use_display_name=False)
File "C:\tensorflow1\models\research\object_detection\utils\label_map_util.py", line 172, in get_label_map_dict
label_map = load_labelmap(label_map_path_or_proto)
File "C:\tensorflow1\models\research\object_detection\utils\label_map_util.py", line 139, in load_labelmap
label_map_string = fid.read()
File "C:\Users\Admin\Anaconda3\envs\tensorflow1\lib\site-packages\tensorflow_core\python\lib\io\file_io.py", line 122, in read
self._preread_check()
File "C:\Users\Admin\Anaconda3\envs\tensorflow1\lib\site-packages\tensorflow_core\python\lib\io\file_io.py", line 84, in _preread_check
compat.as_bytes(self.__name), 1024 * 512)
tensorflow.python.framework.errors_impl.NotFoundError: NewRandomAccessFile failed to Create/Open: C:/tensorflow1/models/research/object_detection/training/labelmap.pbtxt : The system cannot find the file specified.
; No such file or directory

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