0
我想這裏描述的Tensorflow目標檢測API的工作: https://github.com/tensorflow/models/blob/master/object_detection/g3doc/installation.md錯誤與Tensorflow目標檢測
我做了什麼是有描述,但我得到了以下錯誤:
python3 object_detection/builders/model_builder_test.py
..EE...
======================================================================
ERROR: test_create_faster_rcnn_resnet_v1_models_from_config (__main__.ModelBuilderTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "object_detection/builders/model_builder_test.py", line 258, in test_create_faster_rcnn_resnet_v1_models_from_config
for extractor_type, extractor_class in FEATURE_EXTRACTOR_MAPS.iteritems():
AttributeError: 'dict' object has no attribute 'iteritems'
======================================================================
ERROR: test_create_rfcn_resnet_v1_model_from_config (__main__.ModelBuilderTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "object_detection/builders/model_builder_test.py", line 448, in test_create_rfcn_resnet_v1_model_from_config
for extractor_type, extractor_class in FEATURE_EXTRACTOR_MAPS.iteritems():
AttributeError: 'dict' object has no attribute 'iteritems'
----------------------------------------------------------------------
Ran 7 tests in 0.019s
FAILED (errors=2)
請幫我理解那裏有什麼問題,非常感謝!
剛剛發現,這是一個不支持的方法在Python3中調用,更改爲「items()」。 –