docker - TensorFlow 2 Mask-RCNN?
问题描述
我似乎找不到适用于 TensorFlow 2 的可靠版本的 Mask-RCNN。matterport mask-rcnn ( https://github.com/matterport/Mask_RCNN ) 已经贬低了 TensorFlow 1 代码。有人知道 RCNN 或其他对象检测模型的 TensorFlow 2 实现吗?或者可能是一个可以与 Matterport 一起使用的稳定 Docker 镜像?
解决方案
在 TF 2+ 中有一个 Mask RCNN 的工作实现。我在这里找到它:https ://github.com/matterport/Mask_RCNN/tree/295c802f0bebbc4a34ec4855f4960a52a701271d
要使所有示例在 TF 2.4 中工作,您必须通过替换修改 rcnn/model.py 文件:
if model.uses_learning_phase and not isinstance(K.learning_phase(), int):
和
if not isinstance(K.learning_phase(), int):
因为 uses_learning_phase 在 TF 2.4 中不再起作用。
然后使用此更正:https ://stackoverflow.com/a/66842506/13467454
它应该在 TF 2.4 上运行良好。
推荐阅读
- javascript - 使用 Ajax 将 var 发送到查询
- tortoisesvn - TortoiseSVN - Trac - TracExplorer HELL
- java - 所有相同号码的电话号码验证都应该失败
- javascript - 尝试查看帖子时出现 Nextjs 404
- ios - 为什么我在测试密码验证时没有收到错误消息?
- javascript - 如何在 React Native 中注入 JavaScript?
- javascript - 在没有 jQuery 的情况下从数据属性中获取数组
- node.js - 如何摆脱 Node.js 中的 [Object: null prototype]?
- python - python - 将2位字符串数字列表转换为2位整数列表
- swift-mt - 供开发人员编写解析器的 SWIFT 示例商店