小编rlg*_*rlg的帖子

TypeError:`pred`必须是Tensor,或Python bool,或1或0.发现:无

我使用TensorFlow对象检测API运行SSD MobileNetV2,运行以下代码后

(keras-cpu-exp) D:\Pycharm Projects\CPU\models\research\object_detection>python train.py --logtostderr --train_dir=training/ --pipeline_config_path=training/ssd_mobilenet_v2_coco.config
Run Code Online (Sandbox Code Playgroud)

我收到了错误

TypeError:pred必须是Tensor,或Python bool,或1或0.发现:无

(keras-cpu-exp) D:\Pycharm Projects\CPU\models\research\object_detection>python train.py --logtostderr --train_dir=training/ --pipeline_config_path=training/ssd_mobilenet_v2_coco.config
C:\Users\Reagan\AppData\Local\Continuum\Anaconda3\envs\keras-cpu-exp\lib\site-packages\h5py\__init__.py:34: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
  from ._conv import register_converters as _register_converters
WARNING:tensorflow:From C:\Users\Reagan\AppData\Local\Continuum\Anaconda3\envs\keras-cpu-exp\lib\site-packages\tensorflow\contrib\learn\python\learn\datasets\base.py:198: retry (from tensorflow.contrib.learn.python.learn.datasets.base) is deprecated and will be removed in a future version.
Instructions for updating:
Use the retry module or similar alternatives.
Traceback (most recent …
Run Code Online (Sandbox Code Playgroud)

tensorflow object-detection-api

5
推荐指数
1
解决办法
1198
查看次数

标签 统计

object-detection-api ×1

tensorflow ×1