我收到以下错误
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中运行我的预训练模型
发布于 2019-10-20 23:37:13
如果您使用的是Tensorflow v2,则需要一个较旧的Tensorflow版本。(x<2)即使有补丁,它们也可能是与Tensorflow v2.相关的错误卸载它并安装1.15rc2 (例如)。
https://stackoverflow.com/questions/58439392
复制相似问题