-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_hku.sh
More file actions
107 lines (76 loc) · 4.93 KB
/
test_hku.sh
File metadata and controls
107 lines (76 loc) · 4.93 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
#!/bin/bash
# 读取不同的学习率
load_dir="/FactoryTaskAllocationMiC_2024-12-09_21-42-46/nn"
relative_pth="/omniisaacgymenvs/runs"
str="/"
work_space_path=$(pwd)
dir_path=$work_space_path$relative_pth$load_dir
# path=$1
files=$(ls $dir_path)
# for f in "$dir_path"/*; do
# echo $f >> filename.txt
# echo -e >> filename.txt
# done
# for filename in $files
# do
# echo $filename >> filename.txt
# # echo -e >> filename.txt
# done
# for filename in $files
# do
# python omniisaacgymenvs/scripts/rlgames_train_v1.py task=FactoryTaskAllocationMiC train=FactoryTaskAllocationMiCRainbownoe headless=True wandb_activate=True test=True \
# load_dir="$load_dir" load_name="$str$filename" wandb_project=test_HRTA test_times=100
# # echo $filename >> filename.txt
# # echo -e >> filename.txt
# done
# for num in {1..10}
# do
# python omniisaacgymenvs/scripts/rlgames_train_v1.py task=FactoryTaskAllocationMiC train=FactoryTaskAllocationMiCRainbowmini headless=True wandb_activate=True test=True \
# load_dir="/FactoryTaskAllocationMiC_2024-12-23_18-12-29/nn" load_name=/FactoryTaskAllocationMiC_ep_20100.pth wandb_project="test_zero_shot$num" test_times=10 num_product=$num
# # python omniisaacgymenvs/scripts/rlgames_train_v1.py task=FactoryTaskAllocationMiC train=edqn headless=True wandb_activate=True test=True \
# # load_dir="/FactoryTaskAllocationMiC_2024-12-11_13-29-49/nn" load_name=/FactoryTaskAllocationMiC_ep_10500.pth wandb_project="test_zero_shot$num" test_times=10 num_product=$num
# # python omniisaacgymenvs/scripts/rlgames_train_v1.py task=FactoryTaskAllocationMiC train=FactoryTaskAllocationMiCepsilon_noisy headless=True wandb_activate=True test=True \
# # load_dir="/FactoryTaskAllocationMiC_2024-12-09_14-31-02/nn" load_name="/FactoryTaskAllocationMiC_ep_5700.pth" wandb_project="test_zero_shot$num" test_times=10 num_product=$num
# # python omniisaacgymenvs/scripts/rlgames_train_v1.py task=FactoryTaskAllocationMiC train=no_dueling headless=True wandb_activate=True test=True \
# # load_dir="/FactoryTaskAllocationMiC_2024-12-10_13-06-23/nn" load_name="/FactoryTaskAllocationMiC_ep_24900.pth" wandb_project="test_zero_shot$num" test_times=10 num_product=$num
# # python omniisaacgymenvs/scripts/rlgames_train_v1.py task=FactoryTaskAllocationMiC train=FactoryTaskAllocationMiCRainbowmini headless=True wandb_activate=True test=True \
# # load_dir="/FactoryTaskAllocationMiC_2024-12-08_15-44-10/nn" load_name="/FactoryTaskAllocationMiC_ep_24000.pth" wandb_project="test_zero_shot$num" test_times=10 num_product=$num
# done
# python omniisaacgymenvs/scripts/rlgames_train_v1.py task=FactoryTaskAllocationMiC train=FactoryTaskAllocationMiCRainbowmini headless=True wandb_activate=True test=True \
# load_dir="/FactoryTaskAllocationMiC_2024-12-23_18-12-29/nn" load_name=/FactoryTaskAllocationMiC_ep_20100.pth wandb_project=test_HRTA test_times=100
##########PPO discrete test
python omniisaacgymenvs/scripts/rlgames_train_v1.py task=FactoryTaskAllocationMiC train=FactoryTaskAllocationMiCPPOdiscrete headless=True wandb_activate=True test=True \
load_dir="/FactoryTaskAllocationMiC_2025-05-21_16-02-29/nn" load_name=/FactoryTaskAllocationMiC_ep_1200.pth wandb_project=test_HRTA test_times=100
# zero shot
for num in {1..10}
do
python omniisaacgymenvs/scripts/rlgames_train_v1.py task=FactoryTaskAllocationMiC train=FactoryTaskAllocationMiCPPOdiscrete headless=True wandb_activate=True test=True \
load_dir="/FactoryTaskAllocationMiC_2025-05-21_16-02-29/nn" load_name=/FactoryTaskAllocationMiC_ep_1200.pth wandb_project="test_zero_shot$num" test_times=10 num_product=$num
# echo $filename >> filename.txt
# echo -e >> filename.txt
done
##########No extra reward
python omniisaacgymenvs/scripts/rlgames_train_v1.py task=FactoryTaskAllocationMiC train=FactoryTaskAllocationMiCRainbowmini headless=True wandb_activate=True test=True \
load_dir="/FactoryTaskAllocationMiC_2025-05-31_12-10-08/nn" load_name=/FactoryTaskAllocationMiC_ep_22700.pth wandb_project=test_HRTA test_times=100
# zero shot
for num in {1..10}
do
python omniisaacgymenvs/scripts/rlgames_train_v1.py task=FactoryTaskAllocationMiC train=FactoryTaskAllocationMiCRainbowmini headless=True wandb_activate=True test=True \
load_dir="/FactoryTaskAllocationMiC_2025-05-31_12-10-08/nn" load_name=/FactoryTaskAllocationMiC_ep_22700.pth wandb_project="test_zero_shot$num" test_times=10 num_product=$num
# echo $filename >> filename.txt
# echo -e >> filename.txt
done
#########random test move
list=(
23700
22900
24800
18100
)
for num in "${list[@]}"
do
python omniisaacgymenvs/scripts/rlgames_train_v1.py task=FactoryTaskAllocationMiC train=FactoryTaskAllocationMiCRainbowmini headless=True wandb_activate=True test=True \
load_dir="/FactoryTaskAllocationMiC_2024-12-23_18-12-29/nn" load_name=/FactoryTaskAllocationMiC_ep_$num.pth wandb_project=test_move test_times=100
# echo $num
# echo -e >> filename.txt
done