小编RED*_*E07的帖子

类型错误:无法构建类型为 KerasTensor 的 TypeSpec

我是深度学习的新手,所以当我尝试构建一个Masked R-CNN模型来训练我的自定义数据集时,我收到一个错误消息:

TypeError: Could not build a TypeSpec for <KerasTensor: shape=(None, None, 4) dtype=float32 (created by layer 'tf.math.truediv')> with type KerasTensor
Run Code Online (Sandbox Code Playgroud)

下面是我正在尝试实现的PYTHON 代码,用于构建我的 ** Masked R-CNN 模型**:

Mask R-CNN
Configurations and data loading code for MS COCO.

Copyright (c) 2017 Matterport, Inc.
Licensed under the MIT License (see LICENSE for details)
Written by Waleed Abdulla

------------------------------------------------------------

Usage: import the module (see Jupyter notebooks for examples), or run from
       the command line as such:

    # …
Run Code Online (Sandbox Code Playgroud)

python machine-learning image-processing deep-learning tensorflow

6
推荐指数
2
解决办法
7824
查看次数