Skip to content
Snippets Groups Projects
Commit 1993f935 authored by Guillaume HEUSCH's avatar Guillaume HEUSCH
Browse files

[base, cvpr14] modified the default value for protocol and subset

parent bb1123eb
Branches
Tags
1 merge request!6Resolve "Package depends on both bob.db.cohface and bob.db.hci_tagging"
...@@ -18,7 +18,7 @@ Options: ...@@ -18,7 +18,7 @@ Options:
-V, --version Show version -V, --version Show version
-v, --verbose Increases the verbosity (may appear multiple times) -v, --verbose Increases the verbosity (may appear multiple times)
-P, --plot Set this flag if you'd like to see some plots. -P, --plot Set this flag if you'd like to see some plots.
-p, --protocol=<string> Protocol. -p, --protocol=<string> Protocol [default: all].[default: all]
-s, --subset=<string> Data subset to load. If nothing is provided -s, --subset=<string> Data subset to load. If nothing is provided
all the data sets will be loaded. all the data sets will be loaded.
-i, --hrdir=<path> The path to the saved heart rate values on your disk [default: hr]. -i, --hrdir=<path> The path to the saved heart rate values on your disk [default: hr].
...@@ -48,7 +48,7 @@ logger = setup("bob.rppg.base") ...@@ -48,7 +48,7 @@ logger = setup("bob.rppg.base")
from docopt import docopt from docopt import docopt
from bob.extension.config import load from bob.extension.config import load
from bob.rppg.base.utils import get_parameter from ..utils import get_parameter
version = pkg_resources.require('bob.rppg.base')[0].version version = pkg_resources.require('bob.rppg.base')[0].version
...@@ -71,8 +71,8 @@ def main(user_input=None): ...@@ -71,8 +71,8 @@ def main(user_input=None):
configuration = load([os.path.join(args['<configuration>'])]) configuration = load([os.path.join(args['<configuration>'])])
# get various parameters, either from config file or command-line # get various parameters, either from config file or command-line
protocol = get_parameter(args, configuration, 'protocol', 'None') protocol = get_parameter(args, configuration, 'protocol', 'all')
subset = get_parameter(args, configuration, 'subset', 'all') subset = get_parameter(args, configuration, 'subset', None)
hrdir = get_parameter(args, configuration, 'hrdir', 'hr') hrdir = get_parameter(args, configuration, 'hrdir', 'hr')
resultdir = get_parameter(args, configuration, 'resultdir', 'results') resultdir = get_parameter(args, configuration, 'resultdir', 'results')
overwrite = get_parameter(args, configuration, 'overwrite', False) overwrite = get_parameter(args, configuration, 'overwrite', False)
......
...@@ -20,7 +20,7 @@ Options: ...@@ -20,7 +20,7 @@ Options:
-V, --version Show version -V, --version Show version
-P, --plot Set this flag if you'd like to follow-up the algorithm -P, --plot Set this flag if you'd like to follow-up the algorithm
execution graphically. We'll plot some interactions. execution graphically. We'll plot some interactions.
-p, --protocol=<string> Protocol. -p, --protocol=<string> Protocol [default: all].[default: all]
-s, --subset=<string> Data subset to load. If nothing is provided -s, --subset=<string> Data subset to load. If nothing is provided
all the data sets will be loaded. all the data sets will be loaded.
-i, --pulsedir=<path> The path to the saved filtered signals on your disk -i, --pulsedir=<path> The path to the saved filtered signals on your disk
...@@ -60,7 +60,7 @@ logger = setup("bob.rppg.base") ...@@ -60,7 +60,7 @@ logger = setup("bob.rppg.base")
from docopt import docopt from docopt import docopt
from bob.extension.config import load from bob.extension.config import load
from bob.rppg.base.utils import get_parameter from ..utils import get_parameter
version = pkg_resources.require('bob.rppg.base')[0].version version = pkg_resources.require('bob.rppg.base')[0].version
...@@ -83,8 +83,8 @@ def main(user_input=None): ...@@ -83,8 +83,8 @@ def main(user_input=None):
configuration = load([os.path.join(args['<configuration>'])]) configuration = load([os.path.join(args['<configuration>'])])
# get various parameters, either from config file or command-line # get various parameters, either from config file or command-line
protocol = get_parameter(args, configuration, 'protocol', 'None') protocol = get_parameter(args, configuration, 'protocol', 'all')
subset = get_parameter(args, configuration, 'subset', 'all') subset = get_parameter(args, configuration, 'subset', None)
pulsedir = get_parameter(args, configuration, 'pulsedir', 'pulse') pulsedir = get_parameter(args, configuration, 'pulsedir', 'pulse')
hrdir = get_parameter(args, configuration, 'hrdir', 'hr') hrdir = get_parameter(args, configuration, 'hrdir', 'hr')
framerate = get_parameter(args, configuration, 'framerate', 61) framerate = get_parameter(args, configuration, 'framerate', 61)
......
...@@ -17,7 +17,7 @@ Usage: ...@@ -17,7 +17,7 @@ Usage:
Options: Options:
-h, --help Show this screen -h, --help Show this screen
-V, --version Show version -V, --version Show version
-p, --protocol=<string> Protocol. -p, --protocol=<string> Protocol [default: all].
-s, --subset=<string> Data subset to load. If nothing is provided -s, --subset=<string> Data subset to load. If nothing is provided
all the sets will be loaded. all the sets will be loaded.
-f, --facedir=<path> The path to the directory where signal extracted -f, --facedir=<path> The path to the directory where signal extracted
...@@ -63,6 +63,7 @@ logger = setup("bob.rppg.base") ...@@ -63,6 +63,7 @@ logger = setup("bob.rppg.base")
from docopt import docopt from docopt import docopt
from bob.extension.config import load from bob.extension.config import load
from ...base.utils import get_parameter
version = pkg_resources.require('bob.rppg.base')[0].version version = pkg_resources.require('bob.rppg.base')[0].version
...@@ -70,7 +71,6 @@ import numpy ...@@ -70,7 +71,6 @@ import numpy
import bob.io.base import bob.io.base
import bob.ip.facedetect import bob.ip.facedetect
from ...base.utils import get_parameter
from ...base.utils import crop_face from ...base.utils import crop_face
from ..extract_utils import kp66_to_mask from ..extract_utils import kp66_to_mask
...@@ -96,10 +96,10 @@ def main(user_input=None): ...@@ -96,10 +96,10 @@ def main(user_input=None):
# load configuration file # load configuration file
configuration = load([os.path.join(args['<configuration>'])]) configuration = load([os.path.join(args['<configuration>'])])
# get various parameters, either from config file or command-line # get various parameters, either from config file or command-line
protocol = get_parameter(args, configuration, 'protocol', 'None') protocol = get_parameter(args, configuration, 'protocol', 'all')
subset = get_parameter(args, configuration, 'subset', '') subset = get_parameter(args, configuration, 'subset', None)
facedir = get_parameter(args, configuration, 'facedir', 'face') facedir = get_parameter(args, configuration, 'facedir', 'face')
bgdir = get_parameter(args, configuration, 'bgdir', 'bg') bgdir = get_parameter(args, configuration, 'bgdir', 'bg')
npoints = get_parameter(args, configuration, 'npoints', 40) npoints = get_parameter(args, configuration, 'npoints', 40)
...@@ -111,7 +111,7 @@ def main(user_input=None): ...@@ -111,7 +111,7 @@ def main(user_input=None):
gridcount = get_parameter(args, configuration, 'gridcount', False) gridcount = get_parameter(args, configuration, 'gridcount', False)
wholeface = get_parameter(args, configuration, 'wholeface', False) wholeface = get_parameter(args, configuration, 'wholeface', False)
verbosity_level = get_parameter(args, configuration, 'verbose', 0) verbosity_level = get_parameter(args, configuration, 'verbose', 0)
# if the user wants more verbosity, lowers the logging level # if the user wants more verbosity, lowers the logging level
from bob.core.log import set_verbosity_level from bob.core.log import set_verbosity_level
set_verbosity_level(logger, verbosity_level) set_verbosity_level(logger, verbosity_level)
......
...@@ -20,7 +20,7 @@ Options: ...@@ -20,7 +20,7 @@ Options:
-V, --version Show version -V, --version Show version
-P, --plot Set this flag if you'd like to follow-up the algorithm -P, --plot Set this flag if you'd like to follow-up the algorithm
execution graphically. We'll plot some interactions. execution graphically. We'll plot some interactions.
-p, --protocol=<string> Protocol. -p, --protocol=<string> Protocol [default: all].
-s, --subset=<string> Data subset to load. If nothing is provided -s, --subset=<string> Data subset to load. If nothing is provided
all the data sets will be loaded. all the data sets will be loaded.
-i, --motiondir=<path> The path to the saved signals to be filtered on -i, --motiondir=<path> The path to the saved signals to be filtered on
...@@ -92,8 +92,8 @@ def main(user_input=None): ...@@ -92,8 +92,8 @@ def main(user_input=None):
configuration = load([os.path.join(args['<configuration>'])]) configuration = load([os.path.join(args['<configuration>'])])
# get various parameters, either from config file or command-line # get various parameters, either from config file or command-line
protocol = get_parameter(args, configuration, 'protocol', 'None') protocol = get_parameter(args, configuration, 'protocol', 'all')
subset = get_parameter(args, configuration, 'subset', '') subset = get_parameter(args, configuration, 'subset', None)
motiondir = get_parameter(args, configuration, 'motiondir', 'motion') motiondir = get_parameter(args, configuration, 'motiondir', 'motion')
pulsedir = get_parameter(args, configuration, 'pulsedir', 'pulse') pulsedir = get_parameter(args, configuration, 'pulsedir', 'pulse')
Lambda = get_parameter(args, configuration, 'Lambda', 300) Lambda = get_parameter(args, configuration, 'Lambda', 300)
......
...@@ -21,7 +21,7 @@ Options: ...@@ -21,7 +21,7 @@ Options:
-V, --version Show version -V, --version Show version
-P, --plot Set this flag if you'd like to follow-up the algorithm -P, --plot Set this flag if you'd like to follow-up the algorithm
execution graphically. We'll plot some interactions. execution graphically. We'll plot some interactions.
-p, --protocol=<string> Protocol. -p, --protocol=<string> Protocol [default: all].
-s, --subset=<string> Data subset to load. If nothing is provided -s, --subset=<string> Data subset to load. If nothing is provided
all the data sets will be loaded. all the data sets will be loaded.
-f, --facedir=<path> The path to the directory containing the average -f, --facedir=<path> The path to the directory containing the average
...@@ -88,8 +88,8 @@ def main(user_input=None): ...@@ -88,8 +88,8 @@ def main(user_input=None):
configuration = load([os.path.join(args['<configuration>'])]) configuration = load([os.path.join(args['<configuration>'])])
# get various parameters, either from config file or command-line # get various parameters, either from config file or command-line
protocol = get_parameter(args, configuration, 'protocol', 'None') protocol = get_parameter(args, configuration, 'protocol', 'all')
subset = get_parameter(args, configuration, 'subset', 'all') subset = get_parameter(args, configuration, 'subset', None)
facedir = get_parameter(args, configuration, 'facedir', 'face') facedir = get_parameter(args, configuration, 'facedir', 'face')
bgdir = get_parameter(args, configuration, 'bgdir', 'bg') bgdir = get_parameter(args, configuration, 'bgdir', 'bg')
illumdir = get_parameter(args, configuration, 'illumdir', 'illumination') illumdir = get_parameter(args, configuration, 'illumdir', 'illumination')
......
...@@ -20,7 +20,7 @@ Options: ...@@ -20,7 +20,7 @@ Options:
-V, --version Show version -V, --version Show version
-P, --plot Set this flag if you'd like to follow-up the algorithm -P, --plot Set this flag if you'd like to follow-up the algorithm
execution graphically. We'll plot some interactions. execution graphically. We'll plot some interactions.
-p, --protocol=<string> Protocol. -p, --protocol=<string> Protocol [default: all].
-s, --subset=<string> Data subset to load. If nothing is provided -s, --subset=<string> Data subset to load. If nothing is provided
all the data sets will be loaded. all the data sets will be loaded.
-i, --illumdir=<path> The path to the saved illumination corrected signal -i, --illumdir=<path> The path to the saved illumination corrected signal
...@@ -91,8 +91,8 @@ def main(user_input=None): ...@@ -91,8 +91,8 @@ def main(user_input=None):
configuration = load([os.path.join(args['<configuration>'])]) configuration = load([os.path.join(args['<configuration>'])])
# get various parameters, either from config file or command-line # get various parameters, either from config file or command-line
protocol = get_parameter(args, configuration, 'protocol', 'None') protocol = get_parameter(args, configuration, 'protocol', 'all')
subset = get_parameter(args, configuration, 'subset', 'all') subset = get_parameter(args, configuration, 'subset', None)
illumdir = get_parameter(args, configuration, 'illumdir', 'illumination') illumdir = get_parameter(args, configuration, 'illumdir', 'illumination')
motiondir = get_parameter(args, configuration, 'motiondir', 'motion') motiondir = get_parameter(args, configuration, 'motiondir', 'motion')
seglength = get_parameter(args, configuration, 'seglength', 61) seglength = get_parameter(args, configuration, 'seglength', 61)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment