官术网_书友最值得收藏!

Running a sample

Unity ships the ML-Agents package with a number of prepared samples that demonstrate various aspects of learning and training scenarios. Let's open up Unity and load up a sample project and get a feel for how the ML-Agents run by following this exercise:

  1. Open the Unity editor and go to the starting Project dialog. 
  1. Click the Open button at the top of the dialog and navigate to and select the ML-Agents/ml-agents/unity-environment folder, as shown in the following screenshot:
Loading the unity-environment project into the editor
  1. This will load the unity-environment project into the Unity editor. Depending on the Unity version you are using, you may get a warning that the version needs to be upgraded. As long as you are using a recent version of Unity, you can just click Continue. If you do experience problems, try upgrading or downgrading your version of Unity.
  2. Locate the Scene file in the Assets/ML-Agents/Examples/3DBall folder of the Project window, as shown in the following screenshot:
Locating the example scene file in the 3DBall folder
  1. Double-click the 3DBall scene file to open the scene in the editor.
  2. Press the Play button at the top center of the editor to run the scene. You will see that the scene starts running and that balls are being dropped, but the balls just fall off the platforms. This is because the scene starts up in Player mode, which means you can control the platforms with keyboard input. Try to balance the balls on the platform using the arrow keys on the keyboard.
  3. When you are done running the scene, click the Play button again to stop the scene.
主站蜘蛛池模板: 潮安县| 扶风县| 南郑县| 大安市| 巩留县| 桂阳县| 缙云县| 平遥县| 广安市| 政和县| 吐鲁番市| 错那县| 河西区| 阳西县| 林西县| 武鸣县| 新乐市| 保康县| 庆阳市| 靖江市| 越西县| 曲沃县| 镇平县| 格尔木市| 莒南县| 台山市| 兴安盟| 灵山县| 房山区| 宜兴市| 大厂| 石家庄市| 德清县| 登封市| 南丹县| 楚雄市| 晴隆县| 新平| 环江| 淳化县| 屏南县|