-
Notifications
You must be signed in to change notification settings - Fork 75
/
Copy patheval_policy.sh
36 lines (24 loc) · 942 Bytes
/
eval_policy.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
# use the same command as training except the script
# for example:
# bash scripts/eval_policy.sh dp3 adroit_hammer 0322 0 0
DEBUG=False
alg_name=${1}
task_name=${2}
config_name=${alg_name}
addition_info=${3}
seed=${4}
exp_name=${task_name}-${alg_name}-${addition_info}
run_dir="data/outputs/${exp_name}_seed${seed}"
gpu_id=${5}
cd 3D-Diffusion-Policy
export HYDRA_FULL_ERROR=1
export CUDA_VISIBLE_DEVICES=${gpu_id}
python eval.py --config-name=${config_name}.yaml \
task=${task_name} \
hydra.run.dir=${run_dir} \
training.debug=$DEBUG \
training.seed=${seed} \
training.device="cuda:0" \
exp_name=${exp_name} \
logging.mode=${wandb_mode} \
checkpoint.save_ckpt=${save_ckpt}