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

[pip] Fixing recipe

parent 7c6e5e9e
Pipeline #59282 passed with stages
in 21 minutes and 34 seconds
include README.rst buildout.cfg version.txt requirements.txt
recursive-include doc *.rst *.png *.ico *.txt
\ No newline at end of file
recursive-include doc *.rst *.png *.ico *.txt
recursive-include bob/bio/demographics/test/data *.*
\ No newline at end of file
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
......@@ -11,17 +11,17 @@ BACKBONE=iresnet34
BACKBONE=iresnet50
#./bin/bob bio demographics regularization-level-fairness vgg2 $BACKBONE \
# /idiap/temp/tpereira/2.FRDemographics/regularization/models/contrastive_orthogonality/$VGG_TYPE/$BACKBONE/model.pth \
# /idiap/temp/tpereira/2.FRDemographics/regularization/experiments/contrastive_orthogonality/$VGG_TYPE/$BACKBONE/ \
# -l sge
BACKBONE=iresnet100
./bin/bob bio demographics regularization-level-fairness vgg2 $BACKBONE \
/idiap/temp/tpereira/2.FRDemographics/regularization/models/contrastive_orthogonality/$VGG_TYPE/$BACKBONE/model.pth \
/idiap/temp/tpereira/2.FRDemographics/regularization/experiments/contrastive_orthogonality/$VGG_TYPE/$BACKBONE/ \
-l sge
BACKBONE=iresnet100
#./bin/bob bio demographics regularization-level-fairness vgg2 $BACKBONE \
# /idiap/temp/tpereira/2.FRDemographics/regularization/models/contrastive_orthogonality/$VGG_TYPE/$BACKBONE/model.pth \
# /idiap/temp/tpereira/2.FRDemographics/regularization/experiments/contrastive_orthogonality/$VGG_TYPE/$BACKBONE/ \
# -l sge
......@@ -6,7 +6,9 @@ BASE_PATH=/idiap/temp/tpereira/2.FRDemographics/regularization/models/contrastiv
BACKBONE=iresnet50
jman submit --name VGG2-C.IND.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-independence \
#jman submit --name VGG2-C.IND.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-independence \
$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 \
......@@ -18,14 +20,14 @@ jman submit --name VGG2-C.IND.IRESNET50 -q gpu --sge-extra-args="-l hostname=vgn
BACKBONE=iresnet100
jman submit --name VGG2-C.IND.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-independence \
$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 \
--demographic-backbone-checkpoint /idiap/temp/tpereira/2.FRDemographics/regularization/models/demographic/vgg2-short/iresnet50/model.pth \
--demographic-backbone ./bob/bio/demographics/config/train/demographic_backbones/iresnet50.py \
--max-epochs 1 --batch-size 64 \
--max-positive-pairs-per-subject 3 --negative-pairs-per-subject 2
#jman submit --name VGG2-C.IND.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-independence \
# $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 \
# --demographic-backbone-checkpoint /idiap/temp/tpereira/2.FRDemographics/regularization/models/demographic/vgg2-short/iresnet50/model.pth \
# --demographic-backbone ./bob/bio/demographics/config/train/demographic_backbones/iresnet50.py \
# --max-epochs 1 --batch-size 64 \
# --max-positive-pairs-per-subject 3 --negative-pairs-per-subject 2
......
......@@ -286,6 +286,15 @@ def rfw(
help="If set, calibrate using the biometric reference demographics."
"If not set, the calibration is performed using all calibrators and the final score is computed using `reduction_function",
)
@click.option(
"--dask-client",
"-l",
entry_point_group="dask.client",
string_exceptions=VALID_DASK_CLIENT_STRINGS,
default="single-threaded",
help="Dask client for the execution of the pipeline.",
cls=ResourceOption,
)
def morph_race(
fit_score_file,
transform_score_files,
......@@ -293,6 +302,7 @@ def morph_race(
calibrator,
score_selection_method,
calibrate_using_biometric_reference,
dask_client
):
"""
Calibrates scores coming from experiments using RFW database.
......@@ -301,6 +311,9 @@ def morph_race(
field_values = [["A", "W", "B", "H"]]
field_name = ["rac"]
under_represented_demographic_maps = [{"nan": "W", "O": "W"}, {}]
calibrate(
fit_score_file,
transform_score_files,
......@@ -310,6 +323,7 @@ def morph_race(
field_name,
field_values,
calibrate_using_biometric_reference_demographics=calibrate_using_biometric_reference,
under_represented_demographic_maps=under_represented_demographic_maps
)
......
......@@ -25,7 +25,7 @@ setup(
# maintainer_email='email@example.com',
# you may add more keywords separating those by commas (a, b, c, ...)
keywords="bob",
long_description=open("README.rst").read(),
long_description="",
# leave this here, it is pretty standard
packages=find_packages(),
include_package_data=True,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment