Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/tensorflow/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Tensorflow对象检测API测试错误_Tensorflow_Object Detection Api - Fatal编程技术网

Tensorflow对象检测API测试错误

Tensorflow对象检测API测试错误,tensorflow,object-detection-api,Tensorflow,Object Detection Api,我目前正在尝试使用谷歌的模型,并测试对象检测API,但我遇到了阻止我处理的错误。这是我的错误。谁能告诉我如何解决这个问题: tf@tf:~/Downloads/user/huyanju/models/research$ python object_detection/builders/model_builder_test.py Traceback (most recent call last): File "object_detection/builders/model_builder_te

我目前正在尝试使用谷歌的模型,并测试对象检测API,但我遇到了阻止我处理的错误。这是我的错误。谁能告诉我如何解决这个问题:

tf@tf:~/Downloads/user/huyanju/models/research$ python object_detection/builders/model_builder_test.py
Traceback (most recent call last):
  File "object_detection/builders/model_builder_test.py", line 21, in <module>
    from object_detection.builders import model_builder
  File "/home/tf/Downloads/user/huyanju/models/research/object_detection/builders/model_builder.py", line 17, in <module>
    from object_detection.builders import anchor_generator_builder
  File "/home/tf/Downloads/user/huyanju/models/research/object_detection/builders/anchor_generator_builder.py", line 21, in <module>
    from object_detection.protos import anchor_generator_pb2
  File "/home/tf/Downloads/user/huyanju/models/research/object_detection/protos/anchor_generator_pb2.py", line 16, in <module>
    from object_detection.protos import grid_anchor_generator_pb2 as object__detection_dot_protos_dot_grid__anchor__generator__pb2
  File "/home/tf/Downloads/user/huyanju/models/research/object_detection/protos/grid_anchor_generator_pb2.py", line 41, in <module>
    options=None, file=DESCRIPTOR),
TypeError: __new__() got an unexpected keyword argument 'file'
tf@tf:~/Downloads/user/huyanju/models/research$ 
tf@tf:~/Downloads/user/huyanju/models/research$python object\u detection/builders/model\u builder\u test.py
回溯(最近一次呼叫最后一次):
文件“object\u detection/builders/model\u builder\u test.py”,第21行,在
从object_detection.builders导入模型_builder
文件“/home/tf/Downloads/user/huyanju/models/research/object\u detection/builders/model\u builder.py”,第17行,在
从object_detection.builders导入锚定生成器
文件“/home/tf/Downloads/user/huyanju/models/research/object\u detection/builders/anchor\u generator\u builder.py”,第21行,在
从object_detection.protos导入锚点_生成器_pb2
文件“/home/tf/Downloads/user/huyanju/models/research/object\u detection/protos/anchor\u generator\u pb2.py”,第16行,在
从object_detection.protos导入grid_anchor_generator_pb2作为object__detection_dot_protos_dot_grid_anchor_generator_pb2
文件“/home/tf/Downloads/user/huyanju/models/research/object\u detection/protos/grid\u anchor\u generator\u pb2.py”,第41行,在
选项=无,文件=描述符),
TypeError:\uuuuuu new\uuuuuuuuuuuuuuuuuuuuuuu()获取了意外的关键字参数“file”
tf@tf:~/Downloads/user/huyanju/models/research$

您能提供您的代码吗?我遵循官方网站中介绍的步骤:。。。。。。。。。。。您可以通过运行以下命令来测试是否正确安装了Tensorflow对象检测API:python Object_Detection/builders/model_builder_test.py,在这一步中,我遇到了上述错误。以下是Github中的链接: