首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >尝试使用tensorfow_to_barracuda.py将.pb转换为.nn时出现问题

尝试使用tensorfow_to_barracuda.py将.pb转换为.nn时出现问题
EN

Stack Overflow用户
提问于 2019-10-18 03:18:19
回答 1查看 225关注 0票数 1

我收到以下错误

代码语言:javascript
复制
Converting C:\Users\qwerty\Documents\saved_model.pb to output.nn
Sorting model, may take a while.... Done!
IGNORED: GatherV2 unknown layer
Traceback (most recent call last):
  File "tensorflow_to_barracuda.py", line 26, in <module>
    tf2bc.convert(args.source_file, args.target_file, args.trim_unused_by_output, args)
  File "C:\Repos\ml-agents\ml-agents\mlagents\trainers\tensorflow_to_barracuda.py", line 1552, in convert
    i_model, args
  File "C:\Repos\ml-agents\ml-agents\mlagents\trainers\tensorflow_to_barracuda.py", line 1377, in process_model
    process_layer(n, o_context, args)
  File "C:\Repos\ml-agents\ml-agents\mlagents\trainers\tensorflow_to_barracuda.py", line 1220, in process_layer
    assert all_elements_equal(input_ranks)
AssertionError

我需要做些什么来解决这个问题呢?或者,有没有其他方法可以将.pb文件转换为.nn文件,以便在Unity Inference Engine中运行我的预训练模型

EN

回答 1

Stack Overflow用户

发布于 2019-10-20 23:37:13

如果您使用的是Tensorflow v2,则需要一个较旧的Tensorflow版本。(x<2)即使有补丁,它们也可能是与Tensorflow v2.相关的错误卸载它并安装1.15rc2 (例如)。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/58439392

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档