-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathscript_RL.sh
More file actions
26 lines (19 loc) · 734 Bytes
/
script_RL.sh
File metadata and controls
26 lines (19 loc) · 734 Bytes
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
#!/bin/bash
source activate pyRL
PHASE=$1
GPU_IDS=$2
NUM_WORKERS=$3
EXP_TAG=$4
LOG_DIR="./logs/${EXP_TAG}"
if [ ! -d $LOG_DIR ]; then
mkdir -p -m 777 $LOG_DIR
echo "mkdir -p -m 777 ${LOG_DIR} done"
fi
# rm -rf ${LOG_DIR}/${PHASE}_${EXP_TAG}_*.log
LOG="${LOG_DIR}/${PHASE}_${EXP_TAG}_`date +'%Y-%m-%d_%H-%M'`.log"
exec &> >(tee -a "$LOG")
echo Logging output to "$LOG"
# run training
# CUDA_VISIBLE_DEVICES=$GPU_IDS python main_reinforce.py --output ./output/${EXP_TAG} --phase ${PHASE} --config cfgs/reinforce_mlnet.yml --gpu_id $GPU_IDS
CUDA_VISIBLE_DEVICES=$GPU_IDS python main_sac.py --output ./output/${EXP_TAG} --phase ${PHASE} --num_workers ${NUM_WORKERS} --config cfgs/sac_ae_mlnet.yml --gpu_id $GPU_IDS
echo "Done!"