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

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.
主站蜘蛛池模板: 大石桥市| 馆陶县| 武穴市| 大兴区| 敦煌市| 镇安县| 顺义区| 通州区| 长白| 漳浦县| 方城县| 丹寨县| 平凉市| 巴塘县| 唐河县| 丰台区| 怀集县| 苍南县| 任丘市| 攀枝花市| 屏边| 淮阳县| 望都县| 长葛市| 迁西县| 太和县| 永安市| 阿克陶县| 五指山市| 衢州市| 普宁市| 阜城县| 城步| 平武县| 三门县| 苏尼特左旗| 全南县| 桦川县| 闸北区| 城口县| 连城县|