由于属性错误,无法为RCNN训练数据集?

2024-09-26 22:51:40 发布

您现在位置:Python中文网/ 问答频道 /正文

我目前正在学习EdjeeElectronics的教程:https://github.com/EdjeElectronics/TensorFlow-Object-Detection-API-Tutorial-Train-Multiple-Objects-Windows-10#1-install-anaconda-cuda-and-cudnn,我正在进行第6步。运行培训。我以前有一些错误,但我清除了它们,所以我生成了TFrecords,我被困在这里。image

如果有任何文件,我需要附上您的方便,请让我知道


Tags: httpsgithubcomapiobjectsobjectwindowstensorflow
1条回答
网友
1楼 · 发布于 2024-09-26 22:51:40

contrib属性已移出TeSensorFlow版本2。 要使用版本1,请按如下方式替换“导入tensorflow as tf”行:

#import tensorflow as tf
import tensorflow.compat.v1 as tf #using v1 of tf

实际上,当查看这个链接-https://www.tensorflow.org/guide/migrate时,有一行- 仍然可以在TensorFlow 2.0中运行未经修改的1.X代码(contrib除外)

该链接转到第-https://github.com/tensorflow/community/blob/master/rfcs/20180907-contrib-sunset.md页,该页解释了每个contrib模块的情况

您可以尝试将代码迁移到Tensorflow 2或您正在使用的任何版本。 另一种选择是卸载Tensorflow安装并安装Tensorflow版本1.x

相关问题 更多 >

    热门问题