Issue in ML Agents Penguins Tutorial at Unity Learn

Hi,

I am trying to follow the Penguins ML Agents Tutorial. When I get to the stage of importing ML Agents in Unity, I get this error.

Assets\ML-Agents\Scripts\InferenceBrain\ModelRunner.cs(56,57): error CS1061: ‘NNModel’ does not contain a definition for ‘Value’ and no accessible extension method ‘Value’ accepting a first argument of type ‘NNModel’ could be found (are you missing a using directive or an assembly reference?)
Any idea what could be wrong?

2 Likes

This sounds the same as the issue described here: Error with latest Version of Barracuda 0.5.0 on MacOS · Issue #3336 · Unity-Technologies/ml-agents · GitHub
The recommendation is to either use the Barracuda 0.4.0 package (you have 0.4.0), or use the linked branch that has the compatibility fixes for Barracuda 0.5.0

5 Likes

Thanks. I reverted to 0.4.0 and it fixed the issue. Appreciate the prompt and kind reply.

1 Like