Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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