欢迎访问 生活随笔!

生活随笔

当前位置: 首页 > 编程资源 > 编程问答 >内容正文

编程问答

加载checkpoint问题

发布时间:2024/1/17 编程问答 60 豆豆
生活随笔 收集整理的这篇文章主要介绍了 加载checkpoint问题 小编觉得挺不错的,现在分享给大家,帮大家做个参考.

加载checkpoint文件时,报错

 tensorflow.python.framework.errors_impl.NotFoundError: /home/xzw/models/research/object_detection/remove_coach/runs/1555550450/checkpoints; No such file or directory

据错误提示,本人推测:将本地checkpoint目录传入 tf.train.latest_checkpoint() 后,会调用 get_matching_files() 返回checkpoint路径,而此路径是绝对路径,迁移学姐代码需要修改为本地路径,故编辑checkpoint文件修改路径

转载于:https://www.cnblogs.com/wind-chaser/p/11341197.html

总结

以上是生活随笔为你收集整理的加载checkpoint问题的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。