Skip to content

Commit

Permalink
Update eval_subgoals.py
Browse files Browse the repository at this point in the history
  • Loading branch information
bhkim94 authored Dec 5, 2020
1 parent 05ec646 commit 1a00910
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions models/eval/eval_subgoals.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,9 @@ def evaluate(cls, env, model, eval_idx, r_idx, resnet, traj_data, args, lock, su
# increment time index
t += 1

prev_image = curr_image
prev_action = action

# metrics
pl = float(t - len(expert_init_actions)) + 1 # +1 for last action
expert_pl = len([ll for ll in traj_data['plan']['low_actions'] if ll['high_idx'] == eval_idx])
Expand Down

0 comments on commit 1a00910

Please sign in to comment.