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
Commits
2b0dd8d5
Commit
2b0dd8d5
authored
4 years ago
by
Tiago de Freitas Pereira
Browse files
Options
Downloads
Patches
Plain Diff
Added vanilla-biometrics baselines
parent
47ff31e6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!180
[dask] Preparing bob.bio.base for dask pipelines
Pipeline
#41039
passed
4 years ago
Stage: build
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
bob/bio/base/script/resources.py
+4
-24
4 additions, 24 deletions
bob/bio/base/script/resources.py
bob/bio/base/utils/resources.py
+1
-1
1 addition, 1 deletion
bob/bio/base/utils/resources.py
setup.py
+1
-0
1 addition, 0 deletions
setup.py
with
6 additions
and
25 deletions
bob/bio/base/script/resources.py
+
4
−
24
View file @
2b0dd8d5
...
@@ -9,8 +9,8 @@ def resources(command_line_parameters = None):
...
@@ -9,8 +9,8 @@ def resources(command_line_parameters = None):
import
argparse
import
argparse
parser
=
argparse
.
ArgumentParser
(
description
=
__doc__
,
formatter_class
=
argparse
.
ArgumentDefaultsHelpFormatter
)
parser
=
argparse
.
ArgumentParser
(
description
=
__doc__
,
formatter_class
=
argparse
.
ArgumentDefaultsHelpFormatter
)
parser
.
add_argument
(
"
--types
"
,
'
-t
'
,
nargs
=
'
+
'
,
parser
.
add_argument
(
"
--types
"
,
'
-t
'
,
nargs
=
'
+
'
,
choices
=
(
'
d
'
,
'
database
'
,
'
p
'
,
'
preprocessor
'
,
'
e
'
,
'
extractor
'
,
'
a
'
,
'
algorithm
'
,
'
g
'
,
'
grid
'
,
'
c
'
,
'
config
'
,
'
an
'
,
'
annotator
'
,
'
b
'
,
'
bas
eline
'
),
choices
=
(
'
d
'
,
'
database
'
,
'
an
'
,
'
annotator
'
,
'
p
'
,
'
pip
eline
'
),
default
=
(
'
d
'
,
'
p
'
,
'
e
'
,
'
a
'
,
'
g
'
,
'
c
'
,
'
an
'
,
'
b
'
),
default
=
(
'
d
'
,
'
an
'
,
'
b
'
),
help
=
"
Select the resource types that should be listed.
"
)
help
=
"
Select the resource types that should be listed.
"
)
parser
.
add_argument
(
"
--details
"
,
'
-d
'
,
action
=
'
store_true
'
,
help
=
"
Prints the complete configuration for all resources
"
)
parser
.
add_argument
(
"
--details
"
,
'
-d
'
,
action
=
'
store_true
'
,
help
=
"
Prints the complete configuration for all resources
"
)
...
@@ -31,33 +31,13 @@ def resources(command_line_parameters = None):
...
@@ -31,33 +31,13 @@ def resources(command_line_parameters = None):
print
(
"
\n
List of registered databases:
"
)
print
(
"
\n
List of registered databases:
"
)
print
(
bob
.
bio
.
base
.
list_resources
(
'
database
'
,
**
kwargs
))
print
(
bob
.
bio
.
base
.
list_resources
(
'
database
'
,
**
kwargs
))
if
'
p
'
in
args
.
types
or
'
preprocessor
'
in
args
.
types
:
print
(
"
\n
List of registered preprocessors:
"
)
print
(
bob
.
bio
.
base
.
list_resources
(
'
preprocessor
'
,
**
kwargs
))
if
'
e
'
in
args
.
types
or
'
extractor
'
in
args
.
types
:
print
(
"
\n
List of registered extractors:
"
)
print
(
bob
.
bio
.
base
.
list_resources
(
'
extractor
'
,
**
kwargs
))
if
'
a
'
in
args
.
types
or
'
algorithm
'
in
args
.
types
:
print
(
"
\n
List of registered algorithms:
"
)
print
(
bob
.
bio
.
base
.
list_resources
(
'
algorithm
'
,
**
kwargs
))
if
'
g
'
in
args
.
types
or
'
grid
'
in
args
.
types
:
print
(
"
\n
List of registered grid configurations:
"
)
print
(
bob
.
bio
.
base
.
list_resources
(
'
grid
'
,
**
kwargs
))
if
'
c
'
in
args
.
types
or
'
config
'
in
args
.
types
:
print
(
"
\n
List of registered configurations:
"
)
print
(
bob
.
bio
.
base
.
list_resources
(
'
config
'
,
**
kwargs
))
if
'
an
'
in
args
.
types
or
'
annotator
'
in
args
.
types
:
if
'
an
'
in
args
.
types
or
'
annotator
'
in
args
.
types
:
print
(
"
\n
List of registered annotators:
"
)
print
(
"
\n
List of registered annotators:
"
)
print
(
bob
.
bio
.
base
.
list_resources
(
'
annotator
'
,
**
kwargs
))
print
(
bob
.
bio
.
base
.
list_resources
(
'
annotator
'
,
**
kwargs
))
if
'
b
'
in
args
.
types
or
'
bas
eline
'
in
args
.
types
:
if
'
p
'
in
args
.
types
or
'
pip
eline
'
in
args
.
types
:
print
(
"
\n
List of registered baseline:
"
)
print
(
"
\n
List of registered baseline:
"
)
print
(
bob
.
bio
.
base
.
list_resources
(
'
bas
eline
'
,
**
kwargs
))
print
(
bob
.
bio
.
base
.
list_resources
(
'
pip
eline
'
,
**
kwargs
))
print
()
print
()
...
...
This diff is collapsed.
Click to expand it.
bob/bio/base/utils/resources.py
+
1
−
1
View file @
2b0dd8d5
...
@@ -20,7 +20,7 @@ logger = logging.getLogger("bob.bio.base")
...
@@ -20,7 +20,7 @@ logger = logging.getLogger("bob.bio.base")
#: Keywords for which resources are defined.
#: Keywords for which resources are defined.
valid_keywords
=
(
'
database
'
,
'
preprocessor
'
,
'
extractor
'
,
'
algorithm
'
,
'
grid
'
,
'
config
'
,
'
annotator
'
,
'
baseline
'
)
valid_keywords
=
(
'
database
'
,
'
preprocessor
'
,
'
extractor
'
,
'
algorithm
'
,
'
grid
'
,
'
config
'
,
'
annotator
'
,
'
baseline
'
,
'
pipeline
'
)
def
_collect_config
(
paths
):
def
_collect_config
(
paths
):
...
...
This diff is collapsed.
Click to expand it.
setup.py
+
1
−
0
View file @
2b0dd8d5
...
@@ -70,6 +70,7 @@ setup(
...
@@ -70,6 +70,7 @@ setup(
# scripts should be declared using this entry:
# scripts should be declared using this entry:
'
console_scripts
'
:
[
'
console_scripts
'
:
[
'
resources.py = bob.bio.base.script.resources:resources
'
,
],
],
'
bob.bio.config
'
:
[
'
bob.bio.config
'
:
[
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment