Python 属性错误:模块';tensorflow';没有属性';积极执行';

Python 属性错误:模块';tensorflow';没有属性';积极执行';,python,tensorflow,anaconda,Python,Tensorflow,Anaconda,大家好,我是机器学习新手,我正在尝试在CPU上构建一个自定义对象检测模型。但是,在键入后,我在下面遇到此错误: python train.py --logtostderr --train_dir=training/ -pipeline_config_path=training/ssd_mobilenet_v1_coco.config. 任何意见都将不胜感激。我的路径已配置,但问题似乎发生了 Traceback (most recent call last): File "train.py

大家好,我是机器学习新手,我正在尝试在CPU上构建一个自定义对象检测模型。但是,在键入后,我在下面遇到此错误:

python train.py --logtostderr --train_dir=training/ -pipeline_config_path=training/ssd_mobilenet_v1_coco.config. 
任何意见都将不胜感激。我的路径已配置,但问题似乎发生了

Traceback (most recent call last):
  File "train.py", line 184, in <module>
    tf.app.run()
  File "C:\Users\Thremane\Anaconda3\envs\tensorflow1\lib\site-packages\tensorflow\python\platform\app.py", line 124, in run
    _sys.exit(main(argv))
  File "C:\Users\Thremane\Anaconda3\envs\tensorflow1\lib\site-packages\tensorflow\python\util\deprecation.py", line 136, in new_func
    return func(*args, **kwargs)
  File "train.py", line 180, in main
    graph_hook_fn=graph_rewriter_fn)
  File "C:\Users\Thremane\Anaconda3\envs\tensorflow1\lib\site-packages\object_detection-0.1-py3.5.egg\object_detection\legacy\trainer.py", line 304, in train
    train_config.optimizer)
  File "C:\Users\Thremane\Anaconda3\envs\tensorflow1\lib\site-packages\object_detection-0.1-py3.5.egg\object_detection\builders\optimizer_builder.py", line 45, in build
    global_step=global_step)
  File "C:\Users\Thremane\Anaconda3\envs\tensorflow1\lib\site-packages\object_detection-0.1-py3.5.egg\object_detection\builders\optimizer_builder.py", line 113, in _create_learning_rate
    staircase=config.staircase)
  File "C:\Users\Thremane\Anaconda3\envs\tensorflow1\lib\site-packages\object_detection-0.1-py3.5.egg\object_detection\utils\learning_schedules.py", line 79, in exponential_decay_with_burnin
    if tf.executing_eagerly():
AttributeError: module 'tensorflow' has no attribute 'executing_eagerly'
回溯(最近一次呼叫最后一次):
文件“train.py”,第184行,在
tf.app.run()
文件“C:\Users\Thremane\Anaconda3\envs\tensorflow1\lib\site packages\tensorflow\python\platform\app.py”,第124行,正在运行
_系统出口(主(argv))
文件“C:\Users\Thremane\Anaconda3\envs\tensorflow1\lib\site packages\tensorflow\python\util\deprecation.py”,第136行,在新函数中
返回函数(*args,**kwargs)
文件“train.py”,第180行,在main中
图\u钩子\u fn=图\u重写器\u fn)
文件“C:\Users\Thremane\Anaconda3\envs\tensorflow1\lib\site packages\object\u detection-0.1-py3.5.egg\object\u detection\legacy\trainer.py”,第304行,列车中
列车(配置优化器)
文件“C:\Users\Thremane\Anaconda3\envs\tensorflow1\lib\site packages\object\u detection-0.1-py3.5.egg\object\u detection\builders\optimizer\u builder.py”,第45行,内部版本
全局_步=全局_步)
文件“C:\Users\Thremane\Anaconda3\envs\tensorflow1\lib\site packages\object\u detection-0.1-py3.5.egg\object\u detection\builders\optimizer\u builder.py”,第113行,在创建学习率中
楼梯=配置楼梯)
文件“C:\Users\Thremane\Anaconda3\envs\tensorflow1\lib\site packages\object\u detection-0.1-py3.5.egg\object\u detection\utils\learning\u schedules.py”,第79行,带burnin的指数衰减
如果tf.急切地执行_():
AttributeError:模块“tensorflow”没有“急切地执行”属性

我发现了问题所在。TensorFlow版本和列车前模型必须兼容。我在我的环境中安装了Tensorflow v1.5和相应的comit包。现在我正在训练我的模型。

我发现了问题所在。TensorFlow版本和列车前模型必须兼容。我在我的环境中安装了Tensorflow v1.5和相应的comit包。现在我在训练我的模特