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

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.
主站蜘蛛池模板: 潮安县| 黑山县| 邢台市| 屯门区| 清徐县| 民和| 高密市| 锡林浩特市| 龙川县| 吉木乃县| 阜新| 奉贤区| 安庆市| 桃江县| 桓台县| 江津市| 临高县| 西宁市| 神木县| 阳东县| 高州市| 桐城市| 交城县| 琼海市| 阜阳市| 拉萨市| 巨野县| 大港区| 安多县| 通许县| 安达市| 思南县| 保靖县| 察哈| 监利县| 台东市| 保康县| 张北县| 永和县| 德钦县| 乌鲁木齐县|