refactoring

This commit is contained in:
frankknoll
2023-03-16 14:23:23 +01:00
parent 7dfc6f373e
commit f1ad511850
3 changed files with 93 additions and 36 deletions

View File

@@ -28,4 +28,4 @@ class CaptchaReader:
return PredictionsDecoder(CaptchaGenerator.captchaLength, CharNumConverter(CaptchaGenerator.characters).num_to_char).decode_batch_predictions(preds)
def _createPredictionModel(self):
return ModelFactory.createPredictionModel(ModelDAO(inColab=False).loadModel(self.modelFilepath))
return ModelFactory.createPredictionModel(ModelDAO().loadModel(self.modelFilepath))