Unity-Technologies / ml-agents

The Unity Machine Learning Agents Toolkit (ML-Agents) is an open-source project that enables games and simulations to serve as environments for training intelligent agents using deep reinforcement learning and imitation learning.
https://unity.com/products/machine-learning-agents
Other
16.93k stars 4.14k forks source link

Errors on 3Dball Project #4053

Closed hecong97 closed 4 years ago

hecong97 commented 4 years ago

Describe the bug The 3Dball Project can't play in unity 2019.1.0a8 To Reproduce Steps to reproduce the behavior:

  1. drag the 3DBall Model located in Assets/ML-Agents/Examples/3DBall/TFModels into the Model property under Behavior Parameters (Script) component in the Agent GameObject Inspector window.
  2. Click the Play button in the Unity Editor
  3. See error

Console logs / stack traces "Agent component was not found on this gameObject and is required. UnityEngine.Debug:Assert(Boolean, String)" "Couldn't connect to trainer on port 5004 using API version 1.0.0. Will perform inference instead. UnityEngine.Debug:Log(Object) Unity.MLAgents.Academy:InitializeEnvironment() (at C:/Users/Downloads/ml-agents-latest_release/com.unity.ml-agents/Runtime/Academy.cs:394)"

Screenshots IMG20200602_162056

Environment (please complete the following information):

StefanoCecere commented 4 years ago

why should you use 2019.1.0a8 ? can't you at least try with a stable release like Unity 2019.1.14 ?

andrewcoh commented 4 years ago

From the stack trace, it seems like the Agent script is missing from your agent. In 3DBall, this is called Ball 3D Agent. Is this true?

hecong97 commented 4 years ago

The problem is solved with the Unity 2018.4.17. I am new to Unity and don't realize the incompatible between versions

github-actions[bot] commented 3 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.