Object Detection Api安装经测试后,出现“AlreadyExistsError: Another metric with the same name already exists.”

在安装Object Detection Api后,经过如下一行代码测试:

from object_detection.builders import model_builder

出现如下错误:

AlreadyExistsError: Another metric with the same name already exists.

如图:
在这里插入图片描述
在网上寻找解决问题的方案,发现有一处解释合理,运行后也解决问题了。

链接1: Stack Overflow.
链接2: 关于AlreadyExistsError: Another metric with the same name already exists.的解决方案.

大致意思是:Keras 版本与 Tensorflow 版本不匹配。

我装的是python3.8和tensorflow2.6,而在装的过程中,keras默认装成keras2.7版本了,所以版本不匹配。

解决方法:
通过如下代码,先卸载掉keras,

pip uninstall keras

然后在通过如下代码,再次安装keras2.6版本。

pip install keras==2.6.0

最后,经验证,无误!如下图。
在这里插入图片描述

版权声明:本文为CSDN博主「明德zhuang」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/weixin_44359479/article/details/121236331

明德zhuang

我还没有学会写个人说明!

暂无评论

发表评论

相关推荐

手把手教人脸识别Facenet实现

在实现人脸检测mtcnn和人脸识别facenet时,遇到很多坑,记录解决方法,给其他人一点启发。 一、人脸检测mtcnn和人脸识别facenet的具体介绍 参考博客https://www.cnblo

目标检测xywh格式转xyxy格式

这两天在看YOLOv1的代码,看到这边博客给了代码 传送门:动手学习深度学习pytorch版——从零开始实现YOLOv1 其中有个地方需要用到cv2.rectangle()函数来给图像