mirror of
https://github.com/qurator-spk/sbb_binarization.git
synced 2025-06-09 04:10:00 +02:00
glob *.h5 files only in model dir, fix #7
This commit is contained in:
parent
d675ffc066
commit
664a441a2d
1 changed files with 3 additions and 2 deletions
|
@ -3,7 +3,8 @@ Tool to load model and binarize a given image.
|
|||
"""
|
||||
|
||||
import sys
|
||||
from os import listdir, environ, devnull
|
||||
from glob import glob
|
||||
from os import environ, devnull
|
||||
from os.path import join
|
||||
from warnings import catch_warnings, simplefilter
|
||||
|
||||
|
@ -191,7 +192,7 @@ class SbbBinarizer:
|
|||
if image_path is not None:
|
||||
image = cv2.imread(image)
|
||||
self.start_new_session()
|
||||
list_of_model_files = listdir(self.model_dir)
|
||||
list_of_model_files = glob('%s/*.h5' % self.model_dir)
|
||||
img_last = 0
|
||||
for model_in in list_of_model_files:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue