Skip to content
Snippets Groups Projects
Commit 2b0dd8d5 authored by Tiago de Freitas Pereira's avatar Tiago de Freitas Pereira
Browse files

Added vanilla-biometrics baselines

parent 47ff31e6
No related branches found
No related tags found
1 merge request!180[dask] Preparing bob.bio.base for dask pipelines
Pipeline #41039 passed
...@@ -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', 'baseline'), choices = ('d', 'database', 'an', 'annotator', 'p', 'pipeline'),
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 ("\nList of registered databases:") print ("\nList 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 ("\nList of registered preprocessors:")
print (bob.bio.base.list_resources('preprocessor', **kwargs))
if 'e' in args.types or 'extractor' in args.types:
print ("\nList of registered extractors:")
print (bob.bio.base.list_resources('extractor', **kwargs))
if 'a' in args.types or 'algorithm' in args.types:
print ("\nList of registered algorithms:")
print (bob.bio.base.list_resources('algorithm', **kwargs))
if 'g' in args.types or 'grid' in args.types:
print ("\nList of registered grid configurations:")
print (bob.bio.base.list_resources('grid', **kwargs))
if 'c' in args.types or 'config' in args.types:
print ("\nList 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 ("\nList of registered annotators:") print ("\nList 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 'baseline' in args.types: if 'p' in args.types or 'pipeline' in args.types:
print ("\nList of registered baseline:") print ("\nList of registered baseline:")
print (bob.bio.base.list_resources('baseline', **kwargs)) print (bob.bio.base.list_resources('pipeline', **kwargs))
print() print()
......
...@@ -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):
......
...@@ -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': [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment