Today, we’re making a major upgrade to the Unity ML-Agents Toolkit to leverage the Unity Inference Engine, a new library that enables cross-platform inference. This upgrade will enable developers to run the neural network models produced by the Unity ML-Agents Toolkit on all the platforms that Unity supports. In this blog post, we’ll introduce the Unity Inference Engine and describe the changes to the ML-Agents Toolkit workflow. We’ll also demonstrate how Jelly Bowl, by WhatUp Games, is using the Unity Inference Engine to ship a character behavior, trained using the ML-Agents Toolkit, to the Xbox platform.
今天,我们正在对Unity ML-Agents Toolkit进行重大升级,以利用Unity Inference Engine,这是一个启用跨平台推理的新库。 此次升级将使开发人员能够在Unity支持的所有平台上运行Unity ML-Agents Toolkit生成的神经网络模型。 在此博客文章中,我们将介绍Unity推理引擎,并描述对ML-Agents Toolkit工作流程的更改。 我们还将演示WhatUp Games的Jelly Bowl如何使用Unity Inference Engine将通过ML-Agents Toolkit训练的角色行为发送到Xbox平台。
The Unity ML-Agents Toolkit has been used by game developers to train the behavior of both playable and non-playable characters. The ability to train character behaviors by specifying high-level reward signals and/or demonstrations in the Unity Editor can enable developers to craft character behaviors in a more robust and time-efficient manner than scripting them. The character behavior produced by the Unity ML-Agents Toolkit is encoded in a neural network model file generated by TensorFlow. In previous versions of the ML-Agents Toolkit, we relied on a third party plugin, TensorFlowSharp, to enable developers to run the model. Unfortunately, the plugin limited us to only five platforms: Windows, Linux, Mac, iOS, and Android, and we were unable to test on the 20+ platforms that Unity supports.
游戏开发人员已使用Unity ML-Agents工具包来训练可玩和不可玩角色的行为。 通过在Unity Editor中指定高级奖励信号和/或演示来训练角色行为的能力,可使开发人员以比编写脚本更健壮和更省时的方式来设计角色行为。 Unity ML-Agents工具包产生的角色行为被编码在TensorFlow生成的神经网络模型文件中。 在ML-Agents Toolkit的早期版本中,我们依靠第三方插件TensorFlowSharp来使开发人员能够运行模型。 不幸的是,该插件将我们限制在五个平台上:Windows&#x