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
17.19k stars 4.16k forks source link

Video recorder from docs does not work with new ML-Agents v0.13+ #3294

Closed caioc2 closed 4 years ago

caioc2 commented 4 years ago

Describe the bug The video recorder plugin does not work with new ML-Agents Singleton Academy setup.

To Reproduce Open any example(Ball3D) and import the video recorder plugin

Console logs / stack traces

Assets\ML-Agents\VideoRecorder\Scripts\VideoRecorder.cs(63,23): error CS0311: The type 'MLAgents.Academy' cannot be used as type parameter 'T' in the generic type or method 'Object.FindObjectOfType<T>()'. There is no implicit reference conversion from 'MLAgents.Academy' to 'UnityEngine.Object'.

Environment:

Possible solution is here:

chriselion commented 4 years ago

Thanks, I'll look into this today.

chriselion commented 4 years ago

Thanks for catching this, I implemented basically the same fix in https://github.com/Unity-Technologies/video-recorder/pull/3.

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.