Closed trangml-mit closed 1 year ago
Hi,
In addition to switching to categorical
, you will also need to change the allowed actions here to the discrete set:
- stop - move_forward - turn_left - turn_right
After switching to that as well, I get the following error
hydra.errors.ConfigCompositionException: In 'habitat/task/ovmm/nav_to_rec': ConfigKeyError raised while composing config:
Key 'navmesh_offset' not in 'ActionConfig'
full_key: habitat.task.actions.base_velocity.navmesh_offset
reference_type=ActionConfig
object_type=ActionConfig
Which I assume is due to these actions set here.
actions:
base_velocity:
type: "BaseWaypointTeleportAction"
navmesh_offset: [[0.0, 0.0]]
What's the correct replacement for this section of the yaml file?
Yes, you need to delete those 4 lines. Needn't replace with anything.
🐛 Bug
When training an RL agent with categorical actions, the habitat_baselines code throws an
AttributeError: 'Box' object has no attribute 'n'
What is the proper way to run RL training to generate an RL agent with specific allowed_actions? Additionally, once setting it to categorical, how do we put the allowed_actions in the trainer so that it knows that during RL?Steps to Reproduce
python -u -m habitat_baselines.run \ --exp-config habitat-baselines/habitat_baselines/config/ovmm/rl_skill.yaml \ --run-type train benchmark/ovmm=<skill_name> \ habitat_baselines.checkpoint_folder=data/new_checkpoints/ovmm/<skill_name>
Change the yaml config for running RL agent from "gaussian" to "categorical"
Steps to reproduce the behavior:
Expected behavior
An RL agent with discrete actions to be trained, similar to the pretrained agents provided from the benchmark.