tensorflow测试模型是出现No such file or directory: 'image1.jpg'
tensorflow
一个面向所有人的开源机器学习框架
项目地址:https://gitcode.com/gh_mirrors/te/tensorflow
免费下载资源
·
显示没有找到你要检测的图片:修改代码:
源代码:
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)
GitHub 加速计划 / te / tensorflow
184.55 K
74.12 K
下载
一个面向所有人的开源机器学习框架
最近提交(Master分支:2 个月前 )
a49e66f2
PiperOrigin-RevId: 663726708
2 个月前
91dac11a
This test overrides disabled_backends, dropping the default
value in the process.
PiperOrigin-RevId: 663711155
2 个月前
更多推荐
已为社区贡献4条内容
所有评论(0)