Skip to content

--onnx_export_path fails if observations are not stored in property named "obs" #211

@metinc

Description

@metinc

I tried to run the Virtual Camera example and use the --onnx_export_path argument. But it fails with KeyError: 'camera_2d'. camera_2d is the name of the obs property here. In other examples where observations are stored inside a property named obs this error does not occur. I tried the RobotFPS example aswell where obs is used and it worked. But then I renamed obs to robot in get_obs() and get_obs_space() and it failed with KeyError: 'robot'.

Steps to reproduce:

  1. Get latest Godot RL from pip.
  2. Execute python examples/stable_baselines3_example.py --timesteps=400 --onnx_export_path=model.onnx (I had to rename export_model_as_onnx to export_ppo_model_as_onnx for this step, because this rename was not published to pip yet I think)
  3. Open the Virtual Camera example in Godot and hit play.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions