def __init__(self, conf):
    self.device = ('cuda' if torch.cuda.is_available() else 'cpu')
    Model = dynamic_load(extractors, conf['model']['name'])
    self.model = Model(conf['model']).eval().to(self.device)
def __init__(self, conf):
    self.device = ('cuda' if torch.cuda.is_available() else 'cpu')
    Model = dynamic_load(extractors, conf['model']['name'])
    self.model = Model(conf['model']).eval().to(self.device)