When i try to run
python train.py --logtostderr --train_dir=training/ --pipeline_config_path=training/faster_rcnn_inception_v2_pets.config
command this error pops out. (tensorflow1.13)
C:\tensorflow1\models\research\object_detection>python train.py --logtostderr --train_dir=training/ --pipeline_config_path=training/faster_rcnn_inception_v2_pets.config Traceback (most recent call last): File "train.py", line 51, in from object_detection.builders import dataset_builder File "C:\tensorflow1\models\research\object_detection\builders\dataset_builder.py", line 33, in from object_detection.builders import decoder_builder File "C:\tensorflow1\models\research\object_detection\builders\decoder_builder.py", line 25, in from object_detection.data_decoders import tf_example_decoder File "C:\tensorflow1\models\research\object_detection\data_decoders\tf_example_decoder.py", line 28, in from tf_slim import tfexample_decoder as slim_example_decoder File "C:\Users\user\anaconda3\envs\tensorflow1\lib\site-packages\tf_slim_init_.py", line 25, in from tf_slim.layers import * File "C:\Users\user\anaconda3\envs\tensorflow1\lib\site-packages\tf_slim\layers_init_.py", line 25, in from tf_slim.layers.layers import * File "C:\Users\user\anaconda3\envs\tensorflow1\lib\site-packages\tf_slim\layers\layers.py", line 30, in from tf_slim.ops import variables File "C:\Users\user\anaconda3\envs\tensorflow1\lib\site-packages\tf_slim\ops\variables.py", line 27, in from tensorflow.python.framework import device_spec as tf_device ImportError: cannot import name 'device_spec'