Commit 0ca0cbc8 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI

Add video wrappers using chain loading

parent c27ad8eb
Pipeline #20308 passed with stage
in 63 minutes and 50 seconds
try:
algorithm
from bob.bio.video.algorithm import Wrapper
algorithm = Wrapper(algorithm)
except NameError as e:
print("This configuration is meant to be used in chain loading of "
"configuration files. Please see the documentation of "
"bob.extension for chain loading.")
raise e
try:
annotator
from bob.bio.video.annotator import Wrapper
annotator = Wrapper(annotator)
except NameError as e:
print("This configuration is meant to be used in chain loading of "
"configuration files. Please see the documentation of "
"bob.extension for chain loading.")
raise e
try:
extractor
from bob.bio.video.extractor import Wrapper
extractor = Wrapper(extractor)
except NameError as e:
print("This configuration is meant to be used in chain loading of "
"configuration files. Please see the documentation of "
"bob.extension for chain loading.")
raise e
try:
preprocessor
from bob.bio.video.preprocessor import Wrapper
preprocessor = Wrapper(preprocessor)
except NameError as e:
print("This configuration is meant to be used in chain loading of "
"configuration files. Please see the documentation of "
"bob.extension for chain loading.")
raise e
try:
preprocessor
from bob.bio.video.preprocessor import Wrapper
preprocessor = Wrapper(preprocessor)
except NameError as e:
pass
try:
extractor
from bob.bio.video.extractor import Wrapper
extractor = Wrapper(extractor)
except NameError as e:
pass
try:
algorithm
from bob.bio.video.algorithm import Wrapper
algorithm = Wrapper(algorithm)
except NameError as e:
pass
try:
annotator
from bob.bio.video.annotator import Wrapper
annotator = Wrapper(annotator)
except NameError as e:
pass
......@@ -75,3 +75,19 @@ Here is the list of files and replacement strings for all databases that are reg
You can use the ``databases.py`` script to list, which data directories are correctly set up.
.. _bob.bio.video.baselines:
Executing Face Baselines using Video databases
----------------------------------------------
There may exist many face recognition baselines (:ref:`bob.bio.face.baselines`)
designed for still images that you may want to try on video databases. An easy
way to do that is to use our ``video-wrapper`` (It's a ``bob.bio.config``
entrypoint). What this does is to take the preprocessor, extractor, and
algorithm from the baseline and wrap it in bob.bio.video classes:
.. code-block:: sh
$ bob bio baseline <face-baseline> <video-database> video-wrapper
......@@ -73,6 +73,14 @@ setup(
'youtube = bob.bio.video.config.database.youtube:database',
],
'bob.bio.config': [
'preprocessor-wrapper = bob.bio.video.config.chain_loading.preprocessor',
'extractor-wrapper = bob.bio.video.config.chain_loading.extractor',
'algorithm-wrapper = bob.bio.video.config.chain_loading.algorithm',
'annotator-wrapper = bob.bio.video.config.chain_loading.annotator',
'video-wrapper = bob.bio.video.config.chain_loading.video',
]
},
# Classifiers are important if you plan to distribute this package through
......
Markdown is supported
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