Unity3d无法导入TensorFlowSharp plugin包问题

环境:

unity3d:2018.3.0.f2 版本

解决方法:

TensorFlowSharp 仍然属于测试版本. 因此,需要将Unity3d 转到测试版本。

(1)点击 File > Build Settings > Player Settings > Other Settings > Configuration > Scripting Define Symbols. 在方框里面输入:       ENABLE_TENSORFLOW    

(2)点击 File > Build Settings > Player Settings > Other Settings > Configuration > Scripting Runtime Version. Select Experimental (.NET 4.6 也可以). 重启 Unity。

 

根据版本的不同,可能后面还需要勾选一个  unsafe  标签,开发的时候需要关注一下报错信息。

 

 

 

参考资料:

https://blog.goodaudience.com/tensorflow-unity-how-to-set-up-a-custom-tensorflow-graph-in-unity-d65cc1bd1ab1

posted @ 2020-09-29 17:20  谦曰盛  阅读(315)  评论(0编辑  收藏  举报