run_ablation.sh 439 B

1234567891011121314151617
  1. #!/bin/bash
  2. set -e
  3. CONFIG_DIR='configs/levircd/ablation'
  4. LOG_DIR='exp/logs/ablation'
  5. mkdir -p "${LOG_DIR}"
  6. for config_file in $(ls "${CONFIG_DIR}"/*.yaml); do
  7. filename="$(basename ${config_file})"
  8. printf '=%.0s' {1..100} && echo
  9. echo -e "\033[33m ${config_file} \033[0m"
  10. printf '=%.0s' {1..100} && echo
  11. python run_task.py train cd --config "${config_file}" 2>&1 | tee "${LOG_DIR}/${filename%.*}.log"
  12. echo
  13. done