Python Tensorflow GPU模型无法在自定义图像上进行训练

Python Tensorflow GPU模型无法在自定义图像上进行训练,python,tensorflow,machine-learning,object-detection,Python,Tensorflow,Machine Learning,Object Detection,我最近一直在使用GPU处理器处理tensorflow对象检测,在尝试使用自定义图像训练模型时遇到错误。错误跟踪包如下: WARNING:tensorflow:From C:\tensorflow1\models\research\object_detection\trainer.py:260: create_global_step (from tensorflow.contrib.framework.python.ops.variables) is deprecated and will be

我最近一直在使用GPU处理器处理tensorflow对象检测,在尝试使用自定义图像训练模型时遇到错误。错误跟踪包如下:

 WARNING:tensorflow:From C:\tensorflow1\models\research\object_detection\trainer.py:260: 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:num_readers has been reduced to 1 to match input file shards.
Traceback (most recent call last):
  File "train.py", line 184, in <module>
    tf.app.run()
  File "C:\Users\Dan\AppData\Local\conda\conda\envs\tensorflow1\lib\site-packages\tensorflow\python\platform\app.py", line 126, in run
    _sys.exit(main(argv))
  File "train.py", line 180, in main
    graph_hook_fn=graph_rewriter_fn)
  File "C:\tensorflow1\models\research\object_detection\trainer.py", line 274, in train
    train_config.prefetch_queue_capacity, data_augmentation_options)
  File "C:\tensorflow1\models\research\object_detection\trainer.py", line 80, in create_input_queue
    include_keypoints=include_keypoints))
  File "C:\tensorflow1\models\research\object_detection\core\preprocessor.py", line 3147, in preprocess
    (func.__name__))
ValueError: The function random_horizontal_flip does not exist in func_arg_map

需要注意的是,在培训模型之前,我没有遇到任何问题。如果有人能向我解释这个错误,甚至帮助我修复它,我将不胜感激,提前谢谢:-)

您可能会忘记在
~/.bashrc
:
export PYTHONPATH=$PYTHONPATH:
pwd
pwd
/slim

您能解决它吗?怎么做?我也面临同样的问题
python train.py --logtostderr --train_dir=training/ --pipeline_config_path=training/faster_rcnn_inception_v2_pets.config