显示没有找到你要检测的图片:修改代码:

源代码:
PATH_TO_TEST_IMAGES_DIR = 'test_images'
TEST_IMAGE_PATHS = [ os.path.join(PATH_TO_TEST_IMAGES_DIR, 'image{}.jpg'.format(i)) for i in range(1, 3) ]

# Size, in inches, of the output images.
IMAGE_SIZE = (12, 8)

修改后的代码:

PATH_TO_TEST_IMAGES_DIR = 'open_images'    # open_images是自己存放检测图片的文件夹
list = os.listdir("F:\\Python\\Anaconad\\envs\\mytensorflow\\Lib\\site-packages\\tensorflow\\models-master\\research\\object_detection\\open_images\\")
# 构造图片路径;
for i in list:
    TEST_IMAGE_PATHS = [os.path.join(PATH_TO_TEST_IMAGES_DIR,i)]
print(TEST_IMAGE_PATHS)
# Size, in inches, of the output images.
IMAGE_SIZE = (12, 8)

 

Logo

AtomGit 是由开放原子开源基金会联合 CSDN 等生态伙伴共同推出的新一代开源与人工智能协作平台。平台坚持“开放、中立、公益”的理念,把代码托管、模型共享、数据集托管、智能体开发体验和算力服务整合在一起,为开发者提供从开发、训练到部署的一站式体验。

更多推荐