Error while running model_main.py: Windows fatal exception: access violation
System information
- What is the top-level directory of the model you are using: <user_dir>\tensorflow\models\research
- Have I written custom code (as opposed to using a stock example script provided in TensorFlow): No
- OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows 10
- TensorFlow installed from (source or binary): conda install tensorflow
- TensorFlow version (use command below): 1.14.0
- Bazel version (if compiling from source): N/A
- CUDA/cuDNN version: N/A
- GPU model and memory: N/A
- Exact command to reproduce:python object_detection/model_main.py ^ --pipeline_config_path="<user_dir>\tensorflow\models\research\object_detection\samples\configs\faster_rcnn_resnet152_pets.config" ^ --model_dir="<user_dir>\tensorflow\models\research\data\log" ^ --num_train_steps="100" ^ --sample_1_of_n_eval_examples="1" ^ --logtostderr
Describe the problem
I was running code to train on the Oxford Pets Dataset from Conda's command line, but I keep getting this access error by running the code above and can't seem to find help online anywhere at all. So any help would be appreciated.
Source code / logs
Windows fatal exception: access violation
Current thread 0x00002838 (most recent call first):
File "<user_dir>\tensorflow\python\lib\io\file_io.py", line 84 in _preread_check
File "<user_dir>\tensorflow\python\lib\io\file_io.py", line 122 in read
File "<user_dir>\tensorflow\models\research\object_detection\utils\label_map_util.py", line 138 in load_labelmap
File "<user_dir>\tensorflow\models\research\object_detection\utils\label_map_util.py", line 169 in get_label_map_dict
File "<user_dir>\tensorflow\models\research\object_detection\data_decoders\tf_example_decoder.py", line 64 in init
File "<user_dir>\tensorflow\models\research\object_detection\data_decoders\tf_example_decoder.py", line 319 in init
File "<user_dir>\tensorflow\models\research\object_detection\builders\dataset_builder.py", line 130 in build
File "<user_dir>\tensorflow\models\research\object_detection\inputs.py", line 569 in train_input
File "<user_dir>\tensorflow\models\research\object_detection\inputs.py", line 466 in _train_input_fn
File "<user_dir>\tensorflow_estimator\python\estimator\estimator.py", line 1113 in _call_input_fn
File "<user_dir>\tensorflow_estimator\python\estimator\estimator.py", line 1022 in _get_features_and_labels_from_input_fn
File "<user_dir>\tensorflow_estimator\python\estimator\estimator.py", line 1185 in _train_model_default
File "<user_dir>\tensorflow_estimator\python\estimator\estimator.py", line 1158 in _train_model
File "<user_dir>\tensorflow_estimator\python\estimator\estimator.py", line 367 in train
File "<user_dir>\tensorflow_estimator\python\estimator\training.py", line 714 in run_local
File "<user_dir>\tensorflow_estimator\python\estimator\training.py", line 613 in run
File "<user_dir>\tensorflow_estimator\python\estimator\training.py", line 473 in train_and_evaluate
File "object_detection/model_main.py", line 105 in main
File "<user_dir>\absl\app.py", line 250 in _run_main
File "<user_dir>\absl\app.py", line 299 in run
File "<user_dir>\tensorflow\python\platform\app.py", line 40 in run
File "object_detection/model_main.py", line 109 in
Totally my fault with this one. The path in the faster_rcnn_resnet152_pets.config file was incorrectly configured. Correcting it resolved the issue.
Totally my fault with this one. The path in the faster_rcnn_resnet152_pets.config file was incorrectly configured. Correcting it resolved the issue.
thx very much!!!!! I found the error for a long time
Totally my fault with this one. The path in the faster_rcnn_resnet152_pets.config file was incorrectly configured. Correcting it resolved the issue.
thx very much!!!!! I found the error for a long time
currently i'm facing this issue in winodows 7(python)... nd i'm new bie here plz tell me step by step to encounter this problem... thank u