Closed simon-winter closed 3 years ago
Note i could reproduce this with the https://github.com/Unity-Technologies/ml-agents/blob/gridworld-custom-obs/Project/Assets/ML-Agents/Examples/GridWorld/Scripts/GridSensorComponent.cs
I seem to be able import the explorer.onnx
file just fine on both Unity 2018.4 and 2020.1 when using ML-Agents release 10. I notice you are on Barracuda version 1.0.4 from the error messages you have. There is also a warning message at the start of training that says that you have different versions of ML-Agents in Unity and C#. I think you are using ML-Agents package 1.0.6 in Unity
which is not compatible with release 10 of the trainers (trainers version 0.22.0
). It says on the documentation or package 1.0.6 of the package that it is "strongly recommended to use trainers version 0.16.0
but trainers up to trainer version 0.20.0
are supported".
To resolve compatibility, you need to either upgrade the MLAgents Unity package to a more recent (but preview) version (such as 1.6.0) in the Unity package manager OR downgrade the Python trainers to at least version 0.20.0 (pip install mlagents==0.20.0
).
The versions of ML-Agents can be confusing, there is a doc here to clarify some things
Thank you! I didnt expand the preview section and took the latest stable which was 1.0.6, the not matching one. Taking the most recent preview version and the error is gone.
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.
Describe the bug Import of Onnx file fails with error "Unexpected error while parsing layer 44 of type Gemm" when using a custom Sensor implementation for oberserving a float 2D grid making use of the CNN.
The GridSensor implementation can be found here: https://github.com/mbaske/grid-sensor/tree/master/GridSensor To use it:
To Reproduce Steps to reproduce the behavior:
Use GridSensor as described or get the broken onnx here: bugRepOnnx.zip 1.1 train a few seconds, only when not using the file)
try importing saved model/file into Unity
See errors
Console logs / stack traces
Screenshots the output when starting a new training has also some warnings in there.
Environment (please complete the following information):