generate_noise_all_curves.sh 1.2 KB

1234567891011121314151617181920
  1. for file in "images"/*; do
  2. IFS='/' # space is set as delimiter
  3. read -ra ADDR <<< "$file" # str is read into an array as tokens separated by IFS
  4. IFS=' '
  5. image=${ADDR[1]%".png"}
  6. for metric in {"lab","mscn","mscn_revisited","low_bits_2","low_bits_3","low_bits_4", "low_bits_5","low_bits_6","low_bits_4_shifted_2"}; do
  7. for noise in {"cauchy","gaussian","laplace","log_normal","mut_white","white","salt_pepper"}; do
  8. for mode in {"svdn","svdne"}; do
  9. python noise_svd_visualization.py --prefix generated/${image}/${noise} --metric lab --n 1000 --mode ${mode} --interval "0, 200" --step 40 --norm 0 --ylim "0, 0.05"
  10. python noise_svd_visualization.py --prefix generated/${image}/${noise} --metric lab --n 1000 --mode ${mode} --interval "0, 200" --step 40 --norm 1 --ylim "0, 0.1"
  11. python noise_svd_visualization.py --prefix generated/${image}/${noise} --metric lab --n 1000 --mode ${mode} --interval "0, 200" --step 40 --norm 0 --color 1 --ylim "0, 0.05"
  12. python noise_svd_visualization.py --prefix generated/${image}/${noise} --metric lab --n 1000 --mode ${mode} --interval "0, 200" --step 40 --norm 1 --color 1 --ylim "0, 0.1"
  13. done
  14. done
  15. done
  16. done