#!/bin/bash

cats1=("real_a" "fake_b")
cats2=("real_b" "real_b")
ids=({0..0})

for ((ic=0; ic<${#cats1[@]}; ic++)); do
    cat1=${cats1[$ic]}
    cat2=${cats2[$ic]}
    rm -f wct/comp_gan_L1_${cat1}_${cat2}.txt
    rm -f wct/comp_orig_f_L1_${cat1}_${cat2}.txt
    rm -f wct/comp_orig_r_L1_${cat1}_${cat2}.txt
    for ((ii=0; ii<${#ids[@]}; ii++)); do
        id=${ids[$ii]}
        # wirecell-ls4gan comp-metric -m "L1" -f 3D -r 0 800 0 800 0 900 gan/${cat1}/sample_${id}.npz gan/${cat2}/sample_${id}.npz >> wct/comp_gan_L1_${cat1}_${cat2}.csv
        # wirecell-ls4gan comp-metric -m "L1" -f 2D -r 0 800 800 1600 1600 2560 wct/${cat1}/orig_f_${id}.npz wct/${cat2}/orig_f_${id}.npz >> wct/comp_orig_f_L1_${cat1}_${cat2}.csv
        # wirecell-ls4gan comp-metric -m "L1" -f 2D -r 0 800 800 1600 1600 2560 wct/${cat1}/orig_r_${id}.npz wct/${cat2}/orig_r_${id}.npz >> wct/comp_orig_r_L1_${cat1}_${cat2}.csv
        # wirecell-ls4gan comp-metric -m "L1" -t gauss -d float -f 2D -r 0 800 800 1600 1600 2560 wct/${cat1}/gauss_f_${id}.npz wct/${cat2}/gauss_f_${id}.npz >> wct/comp_gauss_f_L1_${cat1}_${cat2}.csv
        wirecell-ls4gan comp-metric -m "L1" -t gauss -d float -f 2D -r 0 800 800 1600 1600 2560 wct/${cat1}/gauss_r_${id}.npz wct/${cat2}/gauss_r_${id}.npz >> wct/comp_gauss_r_L1_${cat1}_${cat2}.csv
        wirecell-ls4gan comp-metric -m "L1" -t dnnsp -d float -f 2D -r 0 800 800 1600 1600 2560 wct/${cat1}/dnnsp_r_${id}.npz wct/${cat2}/dnnsp_r_${id}.npz >> wct/comp_dnnsp_r_L1_${cat1}_${cat2}.csv
    done
done
