How to use the openpifpaf.decoder.factory_from_args function in openpifpaf

To help you get started, we’ve selected a few openpifpaf examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github vita-epfl / openpifpafwebdemo / openpifpafwebdemo / processor.py View on Github external
def __init__(self, width_height, args):
        self.width_height = width_height

        # load model
        self.model, _ = openpifpaf.network.nets.factory_from_args(args)
        self.model = self.model.to(args.device)
        self.processor = openpifpaf.decoder.factory_from_args(args, self.model)
        self.device = args.device

openpifpaf

PifPaf: Composite Fields for Human Pose Estimation

AGPL-3.0
Latest version published 2 years ago

Package Health Score

59 / 100
Full package analysis

Similar packages