Skip to content

Commit

Permalink
add extra parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
HomerW committed Nov 4, 2023
1 parent 5c5b02c commit 5cd2904
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
4 changes: 2 additions & 2 deletions experiments/homer/bridge/eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@
flags.DEFINE_spaceseplist("goal_eep", [0.3, 0.0, 0.15], "Goal position")
flags.DEFINE_spaceseplist("initial_eep", [0.3, 0.0, 0.15], "Initial position")
flags.DEFINE_integer("horizon", 1, "Observation history length")
flags.DEFINE_integer("pred_horizon", 1, "Observation history length")
flags.DEFINE_integer("exec_horizon", 1, "Action sequence length")
flags.DEFINE_integer("pred_horizon", 1, "Length of action sequence from model")
flags.DEFINE_integer("exec_horizon", 1, "Length of action sequence to execute")
flags.DEFINE_bool("deterministic", False, "Whether to sample action deterministically")
flags.DEFINE_float("temperature", 1.0, "Temperature for sampling actions")
flags.DEFINE_string("ip", "localhost", "IP address of the robot")
Expand Down
17 changes: 13 additions & 4 deletions experiments/homer/scripts/eval.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
NAMES=(
"focus_only_on_gripper_20231101_063346"
"gc_bridge_match_old_20231026_193653"
)

STEPS=(
"600000"
"345000"
)

VIDEO_DIR="11-2"
VIDEO_DIR="11-3"

TIMESTEPS="50"

TEMPERATURE="0.1"
TEMPERATURE="1.0"

HORIZON="1"

PRED_HORIZON="1"

EXEC_HORIZON="1"

CMD="python experiments/homer/bridge/eval.py \
--num_timesteps $TIMESTEPS \
Expand All @@ -21,6 +27,9 @@ CMD="python experiments/homer/bridge/eval.py \
$(for i in "${!NAMES[@]}"; do echo "--checkpoint_example_batch_path /mount/harddrive/homer/checkpoints/${NAMES[$i]}/example_batch.msgpack "; done) \
--im_size 256 \
--temperature $TEMPERATURE \
--horizon $HORIZON \
--pred_horizon $PRED_HORIZON \
--exec_horizon $EXEC_HORIZON \
--blocking
"

Expand Down

0 comments on commit 5cd2904

Please sign in to comment.