mirror of
https://github.com/mikegerber/ocrd_calamari.git
synced 2025-06-10 04:09:53 +02:00
fix typos
This commit is contained in:
parent
83adfcfd5a
commit
d6804bd9c3
3 changed files with 5 additions and 4 deletions
|
@ -40,7 +40,7 @@ class CalamariRecognize(Processor):
|
|||
def _init_calamari(self):
|
||||
os.environ['TF_CPP_MIN_LOG_LEVEL'] = TF_CPP_MIN_LOG_LEVEL
|
||||
|
||||
if self.parameter['checkpoint_dir']:
|
||||
if self.parameter.get('checkpoint_dir', None):
|
||||
self.parameter['checkpoint'] = '%s/*.ckpt.json' % self.parameter['checkpoint_dir']
|
||||
checkpoints = glob(self.parameter['checkpoint'])
|
||||
self.predictor = MultiPredictor(checkpoints=checkpoints)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue