async def METHOD_NAME(self, device: str):
    self.model = TextDetectionDefault()
    sd = torch.load(self._get_file_path('detect.ckpt'), map_location='cpu')
    self.model.load_state_dict(sd['model'] if 'model' in sd else sd)
    self.model.eval()
    self.device = device
    if device == 'cuda':
        self.model = self.model.cuda()
    global MODEL
    MODEL = self.model