@[TOC](mask rcnn报错tensorflow.python.framework.errors_impl.FailedPreconditionError: 2 root error(s) found.)
第一次跑目标检测代码,出现了这种错误,下面大概补全下报错具体细节:
tensorflow.python.framework.errors_impl.FailedPreconditionError: 2 root error(s) found.
(0) Failed precondition: Error while reading resource variable
...{node:anchor/Variable}...(具体内容记不清了,大致好像是说anchor和Variable未能初始化)
(1) Failed precondition: Error while reading resource variable
...{node:anchor/Variable}...(具体内容记不清了,大致好像是说anchor和Variable未能初始化)
0 successful operations.
0 derived errors ignored.
解决办法:
tensorflow-gpu版本换为1.15.0,keras版本换为2.1.6(一定不要超过这个版本,不然报错能恶心死你)。
之后参考老大哥的文章可以顺利运行自己数据集下的mask rcnn(我是自己生成标注数据格式的之后(见下图),参考这篇文章的训练代码和测试代码,未测试博客中处理标注数据格式的部分会不会出问题)。
链接: link.
https://blog.csdn.net/YL950305/article/details/109527133