Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def cli():
parser = argparse.ArgumentParser(
description=__doc__,
formatter_class=argparse.ArgumentDefaultsHelpFormatter,
)
openpifpaf.decoder.cli(parser, force_complete_pose=False,
instance_threshold=0.1, seed_threshold=0.5)
openpifpaf.network.nets.cli(parser)
parser.add_argument('--disable-cuda', action='store_true',
help='disable CUDA')
parser.add_argument('--resolution', default=0.4, type=float,
help=('Resolution prescale factor from 640x480. '
'Will be rounded to multiples of 16.'))
parser.add_argument('--write-static-page', default=None,
help='directory in which to create a static version of this page')
parser.add_argument('--debug', default=False, action='store_true',
help='debug messages and autoreload')
parser.add_argument('--google-analytics',
help='provide a google analytics id to inject analytics code')
parser.add_argument('--host', dest='host',
default=os.environ.get('HOST', '127.0.0.1'),
help='host address for webserver, use 0.0.0.0 for global access')
parser.add_argument('--port', dest='port',