Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.bio.base
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bob
bob.bio.base
Merge requests
!269
Creating a setter for AlgorithmTransformer that sets projector file
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Creating a setter for AlgorithmTransformer that sets projector file
fix-167
into
master
Overview
1
Commits
1
Pipelines
5
Changes
2
Merged
Tiago de Freitas Pereira
requested to merge
fix-167
into
master
3 years ago
Overview
1
Commits
1
Pipelines
5
Changes
2
Expand
Closes
#167 (closed)
0
0
Merge request reports
Compare
master
version 1
ebdf02a1
3 years ago
master (base)
and
latest version
latest version
ebdf02a1
1 commit,
3 years ago
version 1
ebdf02a1
1 commit,
3 years ago
2 files
+
27
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
bob/bio/base/pipelines/vanilla_biometrics/wrappers.py
+
16
−
0
Options
@@ -358,6 +358,22 @@ def checkpoint_vanilla_biometrics(
if
isinstance
(
pipeline
.
biometric_algorithm
,
BioAlgorithmLegacy
):
pipeline
.
biometric_algorithm
.
base_dir
=
bio_ref_scores_dir
# Here we need to check if the LAST transformer is
# 1. is instance of CheckpointWrapper
# 2. Its estimator is instance of AlgorithmTransformer
if
(
isinstance
(
pipeline
.
transformer
[
-
1
],
CheckpointWrapper
)
and
hasattr
(
pipeline
.
transformer
[
-
1
].
estimator
,
"
estimator
"
)
and
isinstance
(
pipeline
.
transformer
[
-
1
].
estimator
.
estimator
,
AlgorithmTransformer
)
):
pipeline
.
transformer
[
-
1
].
estimator
.
estimator
.
projector_file
=
bio_ref_scores_dir
else
:
pipeline
.
biometric_algorithm
=
BioAlgorithmCheckpointWrapper
(
pipeline
.
biometric_algorithm
,
base_dir
=
bio_ref_scores_dir
,
hash_fn
=
hash_fn
Loading