#!/bin/sh
echo "Reconstructing subject 1"
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 1 -gpu1 0 -gpu2 0 -seed 1 &
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 1 -gpu1 1 -gpu2 1 -seed 2 &
# python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 1 -gpu1 2 -gpu2 2 -seed 3 &
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 1 -gpu1 3 -gpu2 3 -seed 4 &
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 1 -gpu1 4 -gpu2 4 -seed 5 &
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 1 -gpu1 5 -gpu2 5 -seed 6 &
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 1 -gpu1 6 -gpu2 6 -seed 7 &
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 1 -gpu1 7 -gpu2 7 -seed 8 &
# wait
echo "Reconstructing subject 2"
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 2 -gpu1 0 -gpu2 0 -seed 1 &
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 2 -gpu1 1 -gpu2 1 -seed 2 &
# python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 2 -gpu1 2 -gpu2 2 -seed 3 &
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 2 -gpu1 3 -gpu2 3 -seed 4 &
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 2 -gpu1 4 -gpu2 4 -seed 5 &
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 2 -gpu1 5 -gpu2 5 -seed 6 &
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 2 -gpu1 6 -gpu2 6 -seed 7 &
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 2 -gpu1 7 -gpu2 7 -seed 8 &
wait
echo "Reconstructing subject 3"
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 3 -gpu1 0 -gpu2 0 -seed 1 &
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 3 -gpu1 1 -gpu2 1 -seed 2 &
# python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 3 -gpu1 2 -gpu2 2 -seed 3 &
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 3 -gpu1 3 -gpu2 3 -seed 4 &
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 3 -gpu1 4 -gpu2 4 -seed 5 &
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 3 -gpu1 5 -gpu2 5 -seed 6 &
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 3 -gpu1 6 -gpu2 6 -seed 7 &
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 3 -gpu1 7 -gpu2 7 -seed 8 &
wait
echo "Reconstructing subject 4"
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 4 -gpu1 0 -gpu2 0 -seed 1 &
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 4 -gpu1 1 -gpu2 1 -seed 2 &
# python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 4 -gpu1 2 -gpu2 2 -seed 3 &
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 4 -gpu1 3 -gpu2 3 -seed 4 &
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 4 -gpu1 4 -gpu2 4 -seed 5 &
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 4 -gpu1 5 -gpu2 5 -seed 6 &
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 4 -gpu1 6 -gpu2 6 -seed 7 &
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 4 -gpu1 7 -gpu2 7 -seed 8 &
wait
echo "Reconstructing subject 5"
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 5 -gpu1 0 -gpu2 0 -seed 1 &
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 5 -gpu1 1 -gpu2 1 -seed 2 &
# python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 5 -gpu1 2 -gpu2 2 -seed 3 &
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 5 -gpu1 3 -gpu2 3 -seed 4 &
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 5 -gpu1 4 -gpu2 4 -seed 5 &
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 5 -gpu1 5 -gpu2 5 -seed 6 &
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 5 -gpu1 6 -gpu2 6 -seed 7 &
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 5 -gpu1 7 -gpu2 7 -seed 8 &
wait
echo "Reconstructing subject 6"
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 6 -gpu1 0 -gpu2 0 -seed 1 &
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 6 -gpu1 1 -gpu2 1 -seed 2 &
# python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 6 -gpu1 2 -gpu2 2 -seed 3 &
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 6 -gpu1 3 -gpu2 3 -seed 4 &
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 6 -gpu1 4 -gpu2 4 -seed 5 &
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 6 -gpu1 5 -gpu2 5 -seed 6 &
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 6 -gpu1 6 -gpu2 6 -seed 7 &
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 6 -gpu1 7 -gpu2 7 -seed 8 &
wait
echo "Reconstructing subject 7"
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 7 -gpu1 0 -gpu2 0 -seed 1 &
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 7 -gpu1 1 -gpu2 1 -seed 2 &
# python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 7 -gpu1 2 -gpu2 2 -seed 3 &
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 7 -gpu1 3 -gpu2 3 -seed 4 &
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 7 -gpu1 4 -gpu2 4 -seed 5 &
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 7 -gpu1 5 -gpu2 5 -seed 6 &
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 7 -gpu1 6 -gpu2 6 -seed 7 &
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 7 -gpu1 7 -gpu2 7 -seed 8 &
wait
echo "Reconstructing subject 8"
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 8 -gpu1 0 -gpu2 0 -seed 1 &
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 8 -gpu1 1 -gpu2 1 -seed 2 &
# python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 8 -gpu1 2 -gpu2 2 -seed 3 &
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 8 -gpu1 3 -gpu2 3 -seed 4 &
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 8 -gpu1 4 -gpu2 4 -seed 5 &
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 8 -gpu1 5 -gpu2 5 -seed 6 &
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 8 -gpu1 6 -gpu2 6 -seed 7 &
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 8 -gpu1 7 -gpu2 7 -seed 8 &
wait
echo "Reconstructing subject 9"
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 9 -gpu1 0 -gpu2 0 -seed 1 &
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 9 -gpu1 1 -gpu2 1 -seed 2 &
# python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 9 -gpu1 2 -gpu2 2 -seed 3 &
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 9 -gpu1 3 -gpu2 3 -seed 4 &
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 9 -gpu1 4 -gpu2 4 -seed 5 &
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 9 -gpu1 5 -gpu2 5 -seed 6 &
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 9 -gpu1 6 -gpu2 6 -seed 7 &
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 9 -gpu1 7 -gpu2 7 -seed 8 &
wait
echo "Reconstructing subject 10"
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 10 -gpu1 0 -gpu2 0 -seed 1 &
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 10 -gpu1 1 -gpu2 1 -seed 2 &
# python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 10 -gpu1 2 -gpu2 2 -seed 3 &
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 10 -gpu1 3 -gpu2 3 -seed 4 &
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 10 -gpu1 4 -gpu2 4 -seed 5 &
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 10 -gpu1 5 -gpu2 5 -seed 6 &
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 10 -gpu1 6 -gpu2 6 -seed 7 &
python thingseeg2_scripts/reconstruct_from_embeddings.py -sub 10 -gpu1 7 -gpu2 7 -seed 8 &
wait