TensorFlowSharep plugin插件下载网址

5 篇文章 0 订阅
5 篇文章 2 订阅

v0.3下载地址:https://github.com/Syn-McJ/TFClassify-Unity
https://s3.amazonaws.com/unity-ml-agents/0.3/TFSharpPlugin.unitypackage
v0.4下载地址:https://s3.amazonaws.com/unity-ml-agents/0.4/TFSharpPlugin.unitypackage

v0.5下载地址:https://s3.amazonaws.com/unity-ml-agents/0.5/TFSharpPlugin.unitypackage

1.出现错误:Assets\TensorFlow\Detector.cs(59,9): error CS0103: The name ‘TensorFlowSharp’ does not exist in the current context`

Code: "#if UNITY_ANDROID
TensorFlowSharp.Android.NativeBinding.Init ();
#endif"

Assets\TensorFlow\Classifier.cs(31,9): error CS0103: The name 'TensorFlowSharp' does not exist in the current context

Code: "#if UNITY_ANDROID
TensorFlowSharp.Android.NativeBinding.Init ();
#endif"`
解决方法:
  • (1)将插件换为更低一级的版本如v0.3试一试
  • (2)instead of #if UNITY_ANDROID change it to #if (UNITY_ANDROID && !UNITY_EDITOR)

2.出现错误:Unloading broken assembly Assets/ML-Agents/Plugins/Android/TensorFlowSharp.Android.dll, this assembly can cause crashes in the runtime

解决方法:
  • 我认为这是导入设置问题。 只需选择TensorFlowSharp.Android.dll并取消选中编辑器作为此插件(以及除Android外的所有其他产品)的平台即可。 这使错误消失。

3.出现错误:

Android SDK is outdated SDK Tools version 25.2.5<26.1.1
在这里插入图片描述

解决方法:

使用Android Studio更新
https://www.androiddevtools.cn/下载点击首页的configeration左侧找到Android SDK
在这里插入图片描述安装成功
在这里插入图片描述

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值