Hey y'all, I'm experiencing a weird problem. I have some onnx models that I've produced using mlagents-learn, and now I'm trying to load them for inference in a scene.
When I define an agent and load that model into its behavior through the editor GUI, the behavior during inference matches what I saw during training.
When I instantiate the agent through code, though, and then use setmodel, its behavior becomes nonsensical. Has anyone seen this before, or does anyone have examples of instantiating an agent and using setmodel?
I've yet to try setmodel on an agent that I created through the editor, but I'm gonna do that to try to figure out if the issue is with the agent being instaniated in code, or if it's with setmodel.