Unity trained onnx model behaves a bit wrong when infer with onnxruntime in python. #2534
Unanswered
Norite-dev
asked this question in
Asking for Help
Replies: 1 comment 5 replies
-
Hello, Inverted pendulum / cartpole policies can definitely transfer in either directions. Issues I ran into when I tried it the first time was ensuring the observation spaces match identically between MuJoCo and Unity, including their order. If the MJCFs match (you can export the unity scene as MJCF), checking the observations would be my first advice. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Intro
Hi!
I am an RL researcher and use MuJoCo in Unity for my personal projects.
My setup
Unity 6, MuJoCo 3.2.6, Python 3.10
My question
I've made and trained a simple inverted pendulum in Unity with MuJoCo, the pendulum works great.
Then I built the same digital twin and exchange observations/action with a python program that performs infer of the same .onnx model but using ONNX runtime library. And it behaves a bit differently.
Dear @Balint-H , could you suggest the correct way to infer a model trained in Unity using onnxruntime in python?
Beta Was this translation helpful? Give feedback.
All reactions