Commit 8424ff53 authored by Tiago de Freitas Pereira's avatar Tiago de Freitas Pereira
Browse files

Update

parent bc944cef
Pipeline #60734 failed with stages
in 17 minutes and 15 seconds
from bob.bio.face.pytorch.backbones.iresnet import iresnet100
import logging
logger = logging.getLogger(__name__)
logger.info("Loading BACKBONE")
demographic_backbone = iresnet100
from bob.bio.face.pytorch.backbones.iresnet import iresnet34
import logging
logger = logging.getLogger(__name__)
logger.info("Loading BACKBONE")
demographic_backbone = iresnet34
from bob.bio.face.pytorch.backbones.iresnet import iresnet50
import logging
logger = logging.getLogger(__name__)
logger.info("Loading BACKBONE")
demographic_backbone = iresnet50
VGG_TYPE=meds
BACKBONE=iresnet34
#./bin/bob bio demographics regularization-level-fairness meds $BACKBONE \
# /idiap/temp/tpereira/2.FRDemographics/regularization/models/contrastive/$VGG_TYPE/$BACKBONE/model.pth \
# /idiap/temp/tpereira/2.FRDemographics/regularization/experiments/contrastive/$VGG_TYPE/$BACKBONE/ \
# -l sge
BACKBONE=iresnet50
./bin/bob bio demographics regularization-level-fairness meds $BACKBONE \
/idiap/temp/tpereira/2.FRDemographics/regularization/models/contrastive/$VGG_TYPE/$BACKBONE/model.pth \
/idiap/temp/tpereira/2.FRDemographics/regularization/experiments/contrastive/$VGG_TYPE/$BACKBONE/ \
-l sge
BACKBONE=iresnet100
./bin/bob bio demographics regularization-level-fairness meds $BACKBONE \
/idiap/temp/tpereira/2.FRDemographics/regularization/models/contrastive/$VGG_TYPE/$BACKBONE/model.pth \
/idiap/temp/tpereira/2.FRDemographics/regularization/experiments/contrastive/$VGG_TYPE/$BACKBONE/ \
-l sge
VGG_TYPE=mobio
BACKBONE=iresnet34
#./bin/bob bio demographics regularization-level-fairness mobio $BACKBONE \
# /idiap/temp/tpereira/2.FRDemographics/regularization/models/contrastive/$VGG_TYPE/$BACKBONE/model.pth \
# /idiap/temp/tpereira/2.FRDemographics/regularization/experiments/contrastive/$VGG_TYPE/$BACKBONE/ \
# -l sge
BACKBONE=iresnet50
#./bin/bob bio demographics regularization-level-fairness mobio $BACKBONE \
# /idiap/temp/tpereira/2.FRDemographics/regularization/models/contrastive/$VGG_TYPE/$BACKBONE/model.pth \
# /idiap/temp/tpereira/2.FRDemographics/regularization/experiments/contrastive/$VGG_TYPE/$BACKBONE/ \
# -l sge
BACKBONE=iresnet100
./bin/bob bio demographics regularization-level-fairness mobio $BACKBONE \
/idiap/temp/tpereira/2.FRDemographics/regularization/models/contrastive/$VGG_TYPE/$BACKBONE/model.pth \
/idiap/temp/tpereira/2.FRDemographics/regularization/experiments/contrastive/$VGG_TYPE/$BACKBONE/ \
-l sge
VGG_TYPE=vgg2-short
BACKBONE=iresnet34
#./bin/bob bio demographics regularization-level-fairness vgg2 $BACKBONE \
# /idiap/temp/tpereira/2.FRDemographics/regularization/models/contrastive/$VGG_TYPE/$BACKBONE/model.pth \
# /idiap/temp/tpereira/2.FRDemographics/regularization/experiments/contrastive/$VGG_TYPE/$BACKBONE/ \
# -l sge
BACKBONE=iresnet50
./bin/bob bio demographics regularization-level-fairness vgg2 $BACKBONE \
/idiap/temp/tpereira/2.FRDemographics/regularization/models/contrastive/$VGG_TYPE/$BACKBONE/model.pth \
/idiap/temp/tpereira/2.FRDemographics/regularization/experiments/contrastive/$VGG_TYPE/$BACKBONE/ \
-l sge
BACKBONE=iresnet100
./bin/bob bio demographics regularization-level-fairness vgg2 $BACKBONE \
/idiap/temp/tpereira/2.FRDemographics/regularization/models/contrastive/$VGG_TYPE/$BACKBONE/model.pth \
/idiap/temp/tpereira/2.FRDemographics/regularization/experiments/contrastive/$VGG_TYPE/$BACKBONE/ \
-l sge
MODEL=vgg2-full
PROTOCOL=vgg2-full-with-eval
BACKBONE=iresnet34
#./bin/bob bio demographics regularization-level-fairness vgg2 $BACKBONE --protocol $PROTOCOL \
# /idiap/temp/tpereira/2.FRDemographics/regularization/models/contrastive_calibration/$MODEL/$BACKBONE/model.pth \
# /idiap/temp/tpereira/2.FRDemographics/regularization/experiments/contrastive_calibration/$PROTOCOL/$BACKBONE/ \
# -l sge
BACKBONE=iresnet50
#./bin/bob bio demographics regularization-level-fairness vgg2 $BACKBONE --protocol $PROTOCOL \
# /idiap/temp/tpereira/2.FRDemographics/regularization/models/contrastive_calibration/$MODEL/$BACKBONE/model.pth \
# /idiap/temp/tpereira/2.FRDemographics/regularization/experiments/contrastive_calibration/$PROTOCOL/$BACKBONE/ \
# -l sge
BACKBONE=iresnet100
./bin/bob bio demographics regularization-level-fairness vgg2 $BACKBONE --protocol $PROTOCOL \
/idiap/temp/tpereira/2.FRDemographics/regularization/models/contrastive_calibration/$MODEL/$BACKBONE/model.pth \
/idiap/temp/tpereira/2.FRDemographics/regularization/experiments/contrastive_calibration/$PROTOCOL/$BACKBONE/ \
-l sge
MODEL=vgg2-full
PROTOCOL=vgg2-full-with-eval
BACKBONE=iresnet34
#./bin/bob bio demographics regularization-level-fairness vgg2 $BACKBONE --protocol $PROTOCOL \
# /idiap/temp/tpereira/2.FRDemographics/regularization/models/contrastive_orthogonality/$MODEL/$BACKBONE/model.pth \
# /idiap/temp/tpereira/2.FRDemographics/regularization/experiments/contrastive_orthogonality/$PROTOCOL/$BACKBONE/ \
# -l sge
BACKBONE=iresnet50
#./bin/bob bio demographics regularization-level-fairness vgg2 $BACKBONE --protocol $PROTOCOL \
# /idiap/temp/tpereira/2.FRDemographics/regularization/models/contrastive_orthogonality/$MODEL/$BACKBONE/model.pth \
# /idiap/temp/tpereira/2.FRDemographics/regularization/experiments/contrastive_orthogonality/$PROTOCOL/$BACKBONE/ \
# -l sge
BACKBONE=iresnet100
./bin/bob bio demographics regularization-level-fairness vgg2 $BACKBONE --protocol $PROTOCOL \
/idiap/temp/tpereira/2.FRDemographics/regularization/models/contrastive_orthogonality/$MODEL/$BACKBONE/model.pth \
/idiap/temp/tpereira/2.FRDemographics/regularization/experiments/contrastive_orthogonality/$PROTOCOL/$BACKBONE/ \
-l sge
BACKBONE=iresnet100
./bin/bob bio pipelines vanilla-biometrics rfw-idiap $BACKBONE -o /idiap/temp/tpereira/2.FRDemographics/no-processing/rfw/idiap/$BACKBONE -l sge
BACKBONE=iresnet50
./bin/bob bio pipelines vanilla-biometrics rfw-idiap $BACKBONE -o /idiap/temp/tpereira/2.FRDemographics/no-processing/rfw/idiap/$BACKBONE -l sge
BACKBONE=facenet-sanderberg
./bin/bob bio pipelines vanilla-biometrics rfw-idiap $BACKBONE -o /idiap/temp/tpereira/2.FRDemographics/no-processing/rfw/idiap/$BACKBONE -l sge
BASE_PATH=/idiap/temp/tpereira/2.FRDemographics/regularization/models/balance/meds/
#BACKBONE=iresnet34
#jman submit --name B.IRESNET34 -q gpu --sge-extra-args="-l hostname=vgni001|vgni00[1-9]|vgni01[0-9]|vgni02[0-9]|vgni03[0-2]" -- ./bin/bob bio demographics train-regularization-level-fairness train-balance $BASE_PATH/$BACKBONE \
# -d ./bob/bio/demographics/config/train/databases/meds/meds.py \
# -b ./bob/bio/demographics/config/train/backbones/$BACKBONE.py \
# -h ./bob/bio/demographics/config/train/heads/arcface.py \
# -t ./bob/bio/demographics/config/train/training_configs/regular_sgd_crossentropy.py
BACKBONE=iresnet50
jman submit --name MEDS.B.IRESNET50 -q gpu -- ./bin/bob bio demographics train-regularization-level-fairness train-balance $BASE_PATH/$BACKBONE \
-d ./bob/bio/demographics/config/train/databases/meds/meds.py \
-b ./bob/bio/demographics/config/train/backbones/$BACKBONE.py \
-h ./bob/bio/demographics/config/train/heads/arcface.py \
-t ./bob/bio/demographics/config/train/training_configs/regular_sgd_crossentropy.py
BACKBONE=iresnet100
jman submit --name MEDS.B.IRESNET100 -q gpu -- ./bin/bob bio demographics train-regularization-level-fairness train-balance $BASE_PATH/$BACKBONE \
-d ./bob/bio/demographics/config/train/databases/meds/meds.py \
-b ./bob/bio/demographics/config/train/backbones/$BACKBONE.py \
-h ./bob/bio/demographics/config/train/heads/arcface.py \
-t ./bob/bio/demographics/config/train/training_configs/regular_sgd_crossentropy.py
BASE_PATH=/idiap/temp/tpereira/2.FRDemographics/regularization/models/balance/mobio/
#BACKBONE=iresnet34
#jman submit --name B.IRESNET34 -q gpu --sge-extra-args="-l hostname=vgni001|vgni00[1-9]|vgni01[0-9]|vgni02[0-9]|vgni03[0-2]" -- ./bin/bob bio demographics train-regularization-level-fairness train-balance $BASE_PATH/$BACKBONE \
# -d ./bob/bio/demographics/config/train/databases/vgg2/vgg2-full.py \
# -b ./bob/bio/demographics/config/train/backbones/$BACKBONE.py \
# -h ./bob/bio/demographics/config/train/heads/arcface.py \
# -t ./bob/bio/demographics/config/train/training_configs/regular_sgd_crossentropy.py
BACKBONE=iresnet50
jman submit --name MOBIO.B.IRESNET50 -q gpu -- ./bin/bob bio demographics train-regularization-level-fairness train-balance $BASE_PATH/$BACKBONE \
-d ./bob/bio/demographics/config/train/databases/mobio/mobio-male-female.py \
-b ./bob/bio/demographics/config/train/backbones/$BACKBONE.py \
-h ./bob/bio/demographics/config/train/heads/arcface.py \
-t ./bob/bio/demographics/config/train/training_configs/regular_sgd_crossentropy.py
BACKBONE=iresnet100
jman submit --name MOBIO.B.IRESNET100 -q gpu -- ./bin/bob bio demographics train-regularization-level-fairness train-balance $BASE_PATH/$BACKBONE \
-d ./bob/bio/demographics/config/train/databases/mobio/mobio-male-female.py \
-b ./bob/bio/demographics/config/train/backbones/$BACKBONE.py \
-h ./bob/bio/demographics/config/train/heads/arcface.py \
-t ./bob/bio/demographics/config/train/training_configs/regular_sgd_crossentropy.py
BASE_PATH=/idiap/temp/tpereira/2.FRDemographics/regularization/models/balance/morph/
#BACKBONE=iresnet34
#jman submit --name MORPH.B.IRESNET34 -q gpu --sge-extra-args="-l hostname=vgni001|vgni00[1-9]|vgni01[0-9]|vgni02[0-9]|vgni03[0-2]" -- ./bin/bob bio demographics train-regularization-level-fairness train-balance $BASE_PATH/$BACKBONE \
# -d ./bob/bio/demographics/config/train/databases/morph/morph.py \
# -b ./bob/bio/demographics/config/train/backbones/$BACKBONE.py \
# -h ./bob/bio/demographics/config/train/heads/arcface.py \
# -t ./bob/bio/demographics/config/train/training_configs/regular_sgd_crossentropy.py
BACKBONE=iresnet50
jman submit --name MORPH.B.IRESNET50 -q gpu -- ./bin/bob bio demographics train-regularization-level-fairness train-balance $BASE_PATH/$BACKBONE \
-d ./bob/bio/demographics/config/train/databases/morph/morph.py \
-b ./bob/bio/demographics/config/train/backbones/$BACKBONE.py \
-h ./bob/bio/demographics/config/train/heads/arcface.py \
-t ./bob/bio/demographics/config/train/training_configs/regular_sgd_crossentropy.py --head-epochs 5
BACKBONE=iresnet100
jman submit --name MORPH.B.IRESNET100 -q gpu -- ./bin/bob bio demographics train-regularization-level-fairness train-balance $BASE_PATH/$BACKBONE \
-d ./bob/bio/demographics/config/train/databases/morph/morph.py \
-b ./bob/bio/demographics/config/train/backbones/$BACKBONE.py \
-h ./bob/bio/demographics/config/train/heads/arcface.py \
-t ./bob/bio/demographics/config/train/training_configs/regular_sgd_crossentropy.py --head-epochs 5
BASE_PATH=/idiap/temp/tpereira/2.FRDemographics/regularization/models/contrastive/meds/
#COMMAND=./bob/bio/demographics/script/train_regularization_level_fairness_commands.py
BACKBONE=iresnet50
jman submit --name C.IRESNET50 -q gpu --sge-extra-args="-l hostname=vgni001|vgni00[1-9]|vgni01[0-9]|vgni02[0-9]|vgni03[0-2]|vgnh00[1-8]|vgng00[1-8]|vgnf00[1-9]|vgnf01[1-6]" -- ./bin/bob bio demographics train-regularization-level-fairness train-contrastive \
$BASE_PATH/$BACKBONE \
--database ./bob/bio/demographics/config/train/databases/meds/meds.py \
--identity-backbone ./bob/bio/demographics/config/train/backbones/$BACKBONE.py \
--training-config ./bob/bio/demographics/config/train/training_configs/regular_sgd_crossentropy.py \
--max-epochs 30 --batch-size 128 \
--max-positive-pairs-per-subject 5 --negative-pairs-per-subject 2
BACKBONE=iresnet100
jman submit --name C.IRESNET100 -q gpu --sge-extra-args="-l hostname=vgni001|vgni00[1-9]|vgni01[0-9]|vgni02[0-9]|vgni03[0-2]|vgnh00[1-8]|vgng00[1-8]|vgnf00[1-9]|vgnf01[1-6]" -- ./bin/bob bio demographics train-regularization-level-fairness train-contrastive \
$BASE_PATH/$BACKBONE \
--database ./bob/bio/demographics/config/train/databases/meds/meds.py \
--identity-backbone ./bob/bio/demographics/config/train/backbones/$BACKBONE.py \
--training-config ./bob/bio/demographics/config/train/training_configs/regular_sgd_crossentropy.py \
--max-epochs 30 --batch-size 64 \
--max-positive-pairs-per-subject 5 --negative-pairs-per-subject 2
#BACKBONE=iresnet34
#jman submit --name C.IRESNET34 -q gpu --sge-extra-args="-l hostname=vgni001|vgni00[1-9]|vgni01[0-9]|vgni02[0-9]|vgni03[0-2]" -- ./bin/bob bio demographics train-regularization-level-fairness train-contrastive \
# $BASE_PATH/$BACKBONE \
# --database ./bob/bio/demographics/config/train/databases/meds/meds.py \
# --identity-backbone ./bob/bio/demographics/config/train/backbones/$BACKBONE.py \
# --training-config ./bob/bio/demographics/config/train/training_configs/regular_sgd_crossentropy.py \
# --max-epochs 30 --batch-size 128 \
# --max-positive-pairs-per-subject 5 --negative-pairs-per-subject 2
BASE_PATH=/idiap/temp/tpereira/2.FRDemographics/regularization/models/contrastive/mobio-male-female/
#COMMAND=./bob/bio/demographics/script/train_regularization_level_fairness_commands.py
BACKBONE=iresnet50
jman submit --name C.IRESNET50 -q gpu --sge-extra-args="-l hostname=vgni001|vgni00[1-9]|vgni01[0-9]|vgni02[0-9]|vgni03[0-2]|vgnh00[1-8]|vgng00[1-8]|vgnf00[1-9]|vgnf01[1-6]" -- ./bin/bob bio demographics train-regularization-level-fairness train-contrastive \
$BASE_PATH/$BACKBONE \
--database ./bob/bio/demographics/config/train/databases/mobio/mobio-male-female.py \
--identity-backbone ./bob/bio/demographics/config/train/backbones/$BACKBONE.py \
--training-config ./bob/bio/demographics/config/train/training_configs/regular_sgd_crossentropy.py \
--max-epochs 50 --batch-size 64 \
--max-positive-pairs-per-subject 20 --negative-pairs-per-subject 20
BACKBONE=iresnet100
jman submit --name C.IRESNET100 -q gpu --sge-extra-args="-l hostname=vgni001|vgni00[1-9]|vgni01[0-9]|vgni02[0-9]|vgni03[0-2]|vgnh00[1-8]|vgng00[1-8]|vgnf00[1-9]|vgnf01[1-6]" -- ./bin/bob bio demographics train-regularization-level-fairness train-contrastive \
$BASE_PATH/$BACKBONE \
--database ./bob/bio/demographics/config/train/databases/mobio/mobio-male-female.py \
--identity-backbone ./bob/bio/demographics/config/train/backbones/$BACKBONE.py \
--training-config ./bob/bio/demographics/config/train/training_configs/regular_sgd_crossentropy.py \
--max-epochs 50 --batch-size 64 \
--max-positive-pairs-per-subject 20 --negative-pairs-per-subject 20
BACKBONE=iresnet34
#jman submit --name C.IRESNET34 -q gpu --sge-extra-args="-l hostname=vgni001|vgni00[1-9]|vgni01[0-9]|vgni02[0-9]|vgni03[0-2]" -- ./bin/bob bio demographics train-regularization-level-fairness train-contrastive \
# $BASE_PATH/$BACKBONE \
# --database ./bob/bio/demographics/config/train/databases/mobio/mobio-male-female.py \
# --identity-backbone ./bob/bio/demographics/config/train/backbones/$BACKBONE.py \
# --training-config ./bob/bio/demographics/config/train/training_configs/regular_sgd_crossentropy.py \
# --max-epochs 50 --batch-size 128 \
# --max-positive-pairs-per-subject 20 --negative-pairs-per-subject 20
BASE_PATH=/idiap/temp/tpereira/2.FRDemographics/regularization/models/contrastive/morph/
#COMMAND=./bob/bio/demographics/script/train_regularization_level_fairness_commands.py
BACKBONE=iresnet50
jman submit --name C.IRESNET50 -q gpu --sge-extra-args="-l hostname=vgni001|vgni00[1-9]|vgni01[0-9]|vgni02[0-9]|vgni03[0-2]|vgnh00[1-8]|vgng00[1-8]|vgnf00[1-9]|vgnf01[1-6]" -- ./bin/bob bio demographics train-regularization-level-fairness train-contrastive \
$BASE_PATH/$BACKBONE \
--database ./bob/bio/demographics/config/train/databases/morph/morph.py \
--identity-backbone ./bob/bio/demographics/config/train/backbones/$BACKBONE.py \
--training-config ./bob/bio/demographics/config/train/training_configs/regular_sgd_crossentropy.py \
--max-epochs 30 --batch-size 128 \
--max-positive-pairs-per-subject 5 --negative-pairs-per-subject 2
BACKBONE=iresnet100
jman submit --name C.IRESNET100 -q gpu --sge-extra-args="-l hostname=vgni001|vgni00[1-9]|vgni01[0-9]|vgni02[0-9]|vgni03[0-2]|vgnh00[1-8]|vgng00[1-8]|vgnf00[1-9]|vgnf01[1-6]" -- ./bin/bob bio demographics train-regularization-level-fairness train-contrastive \
$BASE_PATH/$BACKBONE \
--database ./bob/bio/demographics/config/train/databases/morph/morph.py \
--identity-backbone ./bob/bio/demographics/config/train/backbones/$BACKBONE.py \
--training-config ./bob/bio/demographics/config/train/training_configs/regular_sgd_crossentropy.py \
--max-epochs 30 --batch-size 64 \
--max-positive-pairs-per-subject 5 --negative-pairs-per-subject 2
BACKBONE=iresnet34
#jman submit --name C.IRESNET34 -q gpu --sge-extra-args="-l hostname=vgni001|vgni00[1-9]|vgni01[0-9]|vgni02[0-9]|vgni03[0-2]|vgnh00[1-8]|vgng00[1-8]|vgnf00[1-9]|vgnf01[1-6]" -- ./bin/bob bio demographics train-regularization-level-fairness train-contrastive \
# $BASE_PATH/$BACKBONE \
# --database ./bob/bio/demographics/config/train/databases/morph/morph.py \
# --identity-backbone ./bob/bio/demographics/config/train/backbones/$BACKBONE.py \
# --training-config ./bob/bio/demographics/config/train/training_configs/regular_sgd_crossentropy.py \
# --max-epochs 30 --batch-size 64 \
# --max-positive-pairs-per-subject 5 --negative-pairs-per-subject 2
BASE_PATH=/idiap/temp/tpereira/2.FRDemographics/regularization/models/contrastive_calibration/vgg2-full/
#COMMAND=./bob/bio/demographics/script/train_regularization_level_fairness_commands.py
#SGE="-l hostname=vgni001|vgni00[1-9]|vgni01[0-9]|vgni02[0-9]|vgni03[0-2]|vgnh00[1-8]|vgng00[1-8]|vgnf00[1-9]|vgnf01[1-6]"
BACKBONE=iresnet50
jman submit --name VGG2-C.CAL.IRESNET50 -q gpu --sge-extra-args="-l hostname=vgni001|vgni00[1-9]|vgni01[0-9]|vgni02[0-9]|vgni03[0-2]|vgnh00[1-8]|vgng00[1-8]|vgnf00[1-9]|vgnf01[1-6]" -- ./bin/bob bio demographics train-regularization-level-fairness train-contrastive-calibration \
$BASE_PATH/$BACKBONE \
--database ./bob/bio/demographics/config/train/databases/vgg2/vgg2-full-with-validation.py \
--identity-backbone ./bob/bio/demographics/config/train/backbones/$BACKBONE.py \
--training-config ./bob/bio/demographics/config/train/training_configs/regular_sgd_crossentropy.py \
--max-epochs 30 --batch-size 128 \
--max-positive-pairs-per-subject 10 --negative-pairs-per-subject 10
BACKBONE=iresnet100
jman submit --name VGG2-C.CAL.IRESNET100 -q gpu --sge-extra-args="-l hostname=vgni001|vgni00[1-9]|vgni01[0-9]|vgni02[0-9]|vgni03[0-2]|vgnh00[1-8]|vgng00[1-8]|vgnf00[1-9]|vgnf01[1-6]" -- ./bin/bob bio demographics train-regularization-level-fairness train-contrastive-calibration \
$BASE_PATH/$BACKBONE \
--database ./bob/bio/demographics/config/train/databases/vgg2/vgg2-full-with-validation.py \
--identity-backbone ./bob/bio/demographics/config/train/backbones/$BACKBONE.py \
--training-config ./bob/bio/demographics/config/train/training_configs/regular_sgd_crossentropy.py \
--max-epochs 30 --batch-size 64 \
--max-positive-pairs-per-subject 10 --negative-pairs-per-subject 10
BACKBONE=iresnet34
#jman submit --name C.IRESNET34 -q gpu --sge-extra-args="-l hostname=vgni001|vgni00[1-9]|vgni01[0-9]|vgni02[0-9]|vgni03[0-2]|vgnh00[1-8]|vgng00[1-8]|vgnf00[1-9]|vgnf01[1-6]" -- ./bin/bob bio demographics train-regularization-level-fairness train-contrastive \
# $BASE_PATH/$BACKBONE \
# --database ./bob/bio/demographics/config/train/databases/vgg2/vgg2-short-with-validation.py \
# --identity-backbone ./bob/bio/demographics/config/train/backbones/$BACKBONE.py \
# --training-config ./bob/bio/demographics/config/train/training_configs/regular_sgd_crossentropy.py \
# --max-epochs 30 --batch-size 128 \
# --max-positive-pairs-per-subject 3 --negative-pairs-per-subject 2
BASE_PATH=/idiap/temp/tpereira/2.FRDemographics/regularization/models/contrastive/vgg2-short/
#COMMAND=./bob/bio/demographics/script/train_regularization_level_fairness_commands.py
#SGE="-l hostname=vgni001|vgni00[1-9]|vgni01[0-9]|vgni02[0-9]|vgni03[0-2]|vgnh00[1-8]|vgng00[1-8]|vgnf00[1-9]|vgnf01[1-6]"
BACKBONE=iresnet50
jman submit --name C.IRESNET50 -q gpu --sge-extra-args="-l hostname=vgni001|vgni00[1-9]|vgni01[0-9]|vgni02[0-9]|vgni03[0-2]|vgnh00[1-8]|vgng00[1-8]|vgnf00[1-9]|vgnf01[1-6]" -- ./bin/bob bio demographics train-regularization-level-fairness train-contrastive \
$BASE_PATH/$BACKBONE \
--database ./bob/bio/demographics/config/train/databases/vgg2/vgg2-short-with-validation.py \
--identity-backbone ./bob/bio/demographics/config/train/backbones/$BACKBONE.py \
--training-config ./bob/bio/demographics/config/train/training_configs/regular_sgd_crossentropy.py \
--max-epochs 30 --batch-size 128 \
--max-positive-pairs-per-subject 3 --negative-pairs-per-subject 2
BACKBONE=iresnet100
jman submit --name C.IRESNET100 -q gpu --sge-extra-args="-l hostname=vgni001|vgni00[1-9]|vgni01[0-9]|vgni02[0-9]|vgni03[0-2]|vgnh00[1-8]|vgng00[1-8]|vgnf00[1-9]|vgnf01[1-6]" -- ./bin/bob bio demographics train-regularization-level-fairness train-contrastive \
$BASE_PATH/$BACKBONE \
--database ./bob/bio/demographics/config/train/databases/vgg2/vgg2-short-with-validation.py \
--identity-backbone ./bob/bio/demographics/config/train/backbones/$BACKBONE.py \
--training-config ./bob/bio/demographics/config/train/training_configs/regular_sgd_crossentropy.py \
--max-epochs 30 --batch-size 64 \
--max-positive-pairs-per-subject 3 --negative-pairs-per-subject 2
BACKBONE=iresnet34
#jman submit --name C.IRESNET34 -q gpu --sge-extra-args="-l hostname=vgni001|vgni00[1-9]|vgni01[0-9]|vgni02[0-9]|vgni03[0-2]|vgnh00[1-8]|vgng00[1-8]|vgnf00[1-9]|vgnf01[1-6]" -- ./bin/bob bio demographics train-regularization-level-fairness train-contrastive \
# $BASE_PATH/$BACKBONE \
# --database ./bob/bio/demographics/config/train/databases/vgg2/vgg2-short-with-validation.py \
# --identity-backbone ./bob/bio/demographics/config/train/backbones/$BACKBONE.py \
# --training-config ./bob/bio/demographics/config/train/training_configs/regular_sgd_crossentropy.py \
# --max-epochs 30 --batch-size 128 \
# --max-positive-pairs-per-subject 3 --negative-pairs-per-subject 2
BASE_PATH=/idiap/temp/tpereira/2.FRDemographics/regularization/models/contrastive/vgg2-short/
#COMMAND=./bob/bio/demographics/script/train_regularization_level_fairness_commands.py
BACKBONE=iresnet34
#jman submit --name O.IRESNET34 -q gpu --sge-extra-args="-l hostname=vgni001|vgni00[1-9]|vgni01[0-9]|vgni02[0-9]|vgni03[0-2]" --
./bin/bob bio demographics train-regularization-level-fairness train-contrastive \
$BASE_PATH/$BACKBONE \
--database ./bob/bio/demographics/config/train/databases/vgg2/vgg2-short.py \
--identity-backbone ./bob/bio/demographics/config/train/backbones/$BACKBONE.py \
--training-config ./bob/bio/demographics/config/train/training_configs/regular_sgd_crossentropy.py \
--max-epochs 30 --batch-size 64 \
--max-positive-pairs-per-subject 2 --negative-pairs-per-subject 2
#BACKBONE=iresnet50
#jman submit --name O.IRESNET50 -q gpu --sge-extra-args="-l hostname=vgni001|vgni00[1-9]|vgni01[0-9]|vgni02[0-9]|vgni03[0-2]" -- ./bin/bob bio demographics train-regularization-level-fairness train-contrastive \
# $BASE_PATH/$BACKBONE \
# --database ./bob/bio/demographics/config/train/databases/vgg2/vgg2-full.py \
# --identity-backbone ./bob/bio/demographics/config/train/backbones/$BACKBONE.py \
# --demographic-backbone ./bob/bio/demographics/config/train/backbones/iresnet34.py \
# --head ./bob/bio/demographics/config/train/heads/arcface.py \
# --training-config ./bob/bio/demographics/config/train/training_configs/regular_sgd_crossentropy.py \
# --identity-factor 1 \
# --orthogonality-factor 1 \
# --demographic-epochs 20 \
# --identity-epochs 3 \
# --max-epochs 30
#BACKBONE=iresnet100
#jman submit --name O.IRESNET100 -q gpu --sge-extra-args="-l hostname=vgni001|vgni00[1-9]|vgni01[0-9]|vgni02[0-9]|vgni03[0-2]" -- ./bin/bob bio demographics train-regularization-level-fairness train-contrastive \
# $BASE_PATH/$BACKBONE \
# --database ./bob/bio/demographics/config/train/databases/vgg2/vgg2-full.py \
# --identity-backbone ./bob/bio/demographics/config/train/backbones/$BACKBONE.py \
# --demographic-backbone ./bob/bio/demographics/config/train/backbones/iresnet34.py \
# --head ./bob/bio/demographics/config/train/heads/arcface.py \
# --training-config ./bob/bio/demographics/config/train/training_configs/regular_sgd_crossentropy.py \
# --identity-factor 1 \
# --orthogonality-factor 1 \
# --demographic-epochs 20 \
# --identity-epochs 3 \
#--max-epochs 30
BASE_PATH=/idiap/temp/tpereira/2.FRDemographics/regularization/models/contrastive_orthogonality/vgg2-full/
#COMMAND=./bob/bio/demographics/script/train_regularization_level_fairness_commands.py
BACKBONE=iresnet50