-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added separate class and eval script for oracle FBE policy, miscellan…
…eous cleaning of various files
- Loading branch information
1 parent
3f72c6c
commit 3201580
Showing
6 changed files
with
91 additions
and
48 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env bash | ||
# Copyright [2023] Boston Dynamics AI Institute, Inc. | ||
|
||
python -um zsos.run \ | ||
habitat_baselines.evaluate=True \ | ||
habitat_baselines.eval_ckpt_path_dir=dummy_policy.pth \ | ||
habitat_baselines.load_resume_state_config=False \ | ||
habitat_baselines.rl.policy.name=OracleFBEPolicy \ | ||
habitat.task.lab_sensors.base_explorer.turn_angle=30 \ | ||
habitat_baselines.num_environments=1 \ | ||
habitat_baselines.eval.split=val_50 \ | ||
habitat.simulator.habitat_sim_v0.allow_sliding=True \ | ||
habitat_baselines.eval.video_option='["disk"]' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
from habitat_baselines.common.baseline_registry import baseline_registry | ||
from habitat_baselines.common.tensor_dict import TensorDict | ||
from torch import Tensor | ||
|
||
from frontier_exploration.base_explorer import BaseExplorer | ||
from zsos.policy.semantic_policy import SemanticPolicy | ||
|
||
|
||
@baseline_registry.register_policy | ||
class OracleFBEPolicy(SemanticPolicy): | ||
def _explore(self, observations: TensorDict) -> Tensor: | ||
pointnav_action = observations[BaseExplorer.cls_uuid] | ||
return pointnav_action |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters