-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathcurriculum-2.sh
executable file
·45 lines (40 loc) · 1.3 KB
/
curriculum-2.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/bash
export CUDA_VISIBLE_DEVICES=""
(( server = 2 ))
(( run_count = 20 ))
(( batch_size = 1 ))
(( agent_fov = 360 ))
(( step_count = 1000000 ))
visual_occlusion=false
(( start_run_id = 100 * server ))
(( end_run_id = start_run_id + run_count - 1 ))
if [[ "$visual_occlusion" = false ]]; then
mkdir -p temp/results/reward-AvoidOnionsAndThenCollectJellyBeans:agent-fov-$agent_fov:no-visual-occlusion/PPO/Vision+Scent/Plain
else
mkdir -p temp/results/reward-AvoidOnionsAndThenCollectJellyBeans:agent-fov-$agent_fov/PPO/Vision+Scent/Plain
fi
for i in $(seq $start_run_id $end_run_id);
do
if [[ "$visual_occlusion" = true ]]; then
.build/release/JellyBeanWorldExperiments run \
--reward avoidOnionsAndThenCollectJellyBeans \
--agent ppo \
--observation visionAndScent \
--network plain \
--minimum-run-id $i \
--batch-size $batch_size \
--agent-field-of-view $agent_fov \
--step-count $step_count &
else
.build/release/JellyBeanWorldExperiments run \
--reward avoidOnionsAndThenCollectJellyBeans \
--agent ppo \
--observation visionAndScent \
--network plain \
--minimum-run-id $i \
--batch-size $batch_size \
--agent-field-of-view $agent_fov \
--no-visual-occlusion \
--step-count $step_count &
fi
done