Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/trial_reward' into grasp_pytorch…
Browse files Browse the repository at this point in the history
…0.4+
  • Loading branch information
ahundt committed Sep 15, 2019
2 parents 8c3e0ba + 584f5b2 commit f9bf238
Show file tree
Hide file tree
Showing 6 changed files with 257 additions and 427 deletions.
8 changes: 5 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -656,9 +656,11 @@ def process_actions():
empty_threshold = 10
if check_row:
# here we are assuming blocks for check_row, if any block leaves the scene then we can't succeed.
# TODO(ahundt) is adding num_extra_obj appropriate?
# TODO(ahundt) is applying this threshold to place appropriate? probably not unless volume is also accounted for, a perfect stack is about the area of 1 block.
empty_threshold = 300 * (num_obj + num_extra_obj)
# TODO(ahundt) Ideally volume should also be accounted for, a perfect stack is about the area of 1 block, and the scene might start with a stack.
num_empty_obj = num_obj
if is_testing:
num_empty_obj -= 1
empty_threshold = 300 * (num_empty_obj + num_extra_obj)
if np.sum(stuff_count) < empty_threshold or (is_sim and no_change_count[0] + no_change_count[1] > 10):
if is_sim:
print('There have not been changes to the objects for for a long time [push, grasp]: ' + str(no_change_count) +
Expand Down
338 changes: 126 additions & 212 deletions plot_success_rate/.ipynb_checkpoints/calculate_successes-checkpoint.ipynb

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
338 changes: 126 additions & 212 deletions plot_success_rate/calculate_successes.ipynb

Large diffs are not rendered by default.

Binary file not shown.

0 comments on commit f9bf238

Please sign in to comment.