Browse Source

small polish over syncscript

refactoring
sp 11 months ago
parent
commit
ecebfceef5
  1. 19
      syncscript.sh

19
syncscript.sh

@ -43,21 +43,21 @@ fi
# python3 examples/shields/rl/11_minigridrl.py --expname "$exp_name" --steps "$1" --log_dir "$experiment_log_dir"/ --evaluations "$3" --env "$4" --shielding "$5" --shield_comparision "$6" --prism_config "$7" --prob_next "$8" --prob_direct "$9" --prob_forward "${10}" --shield_value "${11}" & # python3 examples/shields/rl/11_minigridrl.py --expname "$exp_name" --steps "$1" --log_dir "$experiment_log_dir"/ --evaluations "$3" --env "$4" --shielding "$5" --shield_comparision "$6" --prism_config "$7" --prob_next "$8" --prob_direct "$9" --prob_forward "${10}" --shield_value "${11}" &
set -x set -x
srun -w $gpu python3 examples/shields/rl/15_train_eval_tune.py --env $4 \
--shielding $5 \
--steps $1 \
srun -w $gpu python3 examples/shields/rl/15_train_eval_tune.py \
--expname "$exp_name" \ --expname "$exp_name" \
--log_dir "$experiment_log_dir" \ --log_dir "$experiment_log_dir" \
--evaluations $3 \
--grid_to_prism_binary_path $MINIGRID_BINARY \ --grid_to_prism_binary_path $MINIGRID_BINARY \
--steps $1 \
--evaluations $3 \
--env $4 \
--shielding $5 \
--shield_comparision $6 \ --shield_comparision $6 \
--prism_config $7 \ --prism_config $7 \
--prob_displacement $8 \ --prob_displacement $8 \
--prob_intended $9 \ --prob_intended $9 \
--prob_turn_displacement "${10}" \ --prob_turn_displacement "${10}" \
--prop_turn_intended "${12}" \
--shield_comparision $6 \
--shield_value "${11}" \ --shield_value "${11}" \
--prop_turn_intended "${12}" \
--num_gpus ${NUM_GPUS} & --num_gpus ${NUM_GPUS} &
set +x set +x
@ -69,10 +69,3 @@ while [[ -n $(jobs -r) ]]; do
sleep 60; sleep 60;
done done
rsync -avtr --append --stats $(pwd)/$experiment_log_dir/$exp_name tensorboard:/media/data1/easy_rl_tb_logs rsync -avtr --append --stats $(pwd)/$experiment_log_dir/$exp_name tensorboard:/media/data1/easy_rl_tb_logs
#!/bin/bash
. ../env/bin/activate
Loading…
Cancel
Save