Skip to content

Commit 1ee58b3

Browse files
committed
add --num_episodes
1 parent 73489f7 commit 1ee58b3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

record_episodes.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@
1212
# parse the task name via command line
1313
parser = argparse.ArgumentParser()
1414
parser.add_argument('--task', type=str, default='task1')
15+
parser.add_argument('--num_episodes', type=int, default=1)
1516
args = parser.parse_args()
1617
task = args.task
18+
num_episodes = args.num_episodes
1719

1820
cfg = TASK_CONFIG
1921

@@ -47,7 +49,7 @@ def capture_image(cam):
4749
leader.set_trigger_torque()
4850

4951

50-
for i in range(cfg['num_episodes']):
52+
for i in range(num_episodes):
5153
# bring the follower to the leader and start camera
5254
for i in range(200):
5355
follower.set_goal_pos(leader.read_position())

0 commit comments

Comments
 (0)