generate_noise_all_curves.sh 1.1 KB

12345678910111213141516171819
  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]}
  6. for noise in {"cauchy","gaussian","laplace","log_normal","mut_white","white","salt_pepper"}; do
  7. for mode in {"svdn","svdne"}; do
  8. 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"
  9. 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"
  10. 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.05"
  11. python noise_svd_visualization.py --prefix generated/${image}/${noise} --metric lab --n 1000 --mode ${mode} --interval "0, 200" --step 40 --norm 1 --ylim --color 1 "0, 0.1"
  12. done
  13. done
  14. done