在对象检测API中支持Tensorflow 2.0
我正在使用TF对象检测API来训练一个模型,我最终将使用TF服务部署该模型。我计划获取该网络的输出(在中间CNN层),并为除目标检测之外的其他功能构建额外的网络。我计划在TF2.0中开发新的网络。然而,为了使其顺利工作,(我怀疑)需要更新对象检测API以支持TF-2.0 是否有计划将TF OD API更新为TF 2.0? 我尝试运行model_builder_测试,但失败如下所示,因为tensorflow 2.0不再支持contrib在对象检测API中支持Tensorflow 2.0,tensorflow,tensorflow-serving,object-detection-api,Tensorflow,Tensorflow Serving,Object Detection Api,我正在使用TF对象检测API来训练一个模型,我最终将使用TF服务部署该模型。我计划获取该网络的输出(在中间CNN层),并为除目标检测之外的其他功能构建额外的网络。我计划在TF2.0中开发新的网络。然而,为了使其顺利工作,(我怀疑)需要更新对象检测API以支持TF-2.0 是否有计划将TF OD API更新为TF 2.0? 我尝试运行model_builder_测试,但失败如下所示,因为tensorflow 2.0不再支持contrib Traceback (most recent call la
Traceback (most recent call last):
File "object_detection/builders/model_builder_test.py", line 23, in <module>
from object_detection.builders import model_builder
File "/models/research/object_detection/builders/model_builder.py", line 19, in <module>
from object_detection.builders import box_predictor_builder
File "/models/research/object_detection/builders/box_predictor_builder.py", line 18, in <module>
from object_detection.core import box_predictor
File "/research/object_detection/core/box_predictor.py", line 35, in <module>
slim = tf.contrib.slim
AttributeError: module 'tensorflow' has no attribute 'contrib'
回溯(最近一次呼叫最后一次):
文件“object\u detection/builders/model\u builder\u test.py”,第23行,在
从object_detection.builders导入模型_builder
文件“/models/research/object\u detection/builders/model\u builder.py”,第19行,在
从object\u detection.builders导入框\u预测器\u builder
文件“/models/research/object\u detection/builders/box\u predictor\u builder.py”,第18行,在
从object_detection.core导入框_预测器
文件“/research/object\u detection/core/box\u predictor.py”,第35行,在
slim=tf.contrib.slim
AttributeError:模块“tensorflow”没有属性“contrib”
Tensorflow 2.0仍处于Alpha模式。幸运的是,对Tensorflow 2.0的支持最终将被添加。请参见此是的,有计划将对象检测API迁移到TF2.0,但这需要几个月的时间。同时,请对API使用TF1.x 在本月TF2.0正式发布之后,我想知道是否有人知道有关将对象检测API迁移到TF2.0的任何更新?