loading savedmodel

transformer_model_integration
vahid 2 years ago
parent 85f55077a4
commit fa354e1e0f

@ -1,5 +1,5 @@
numpy numpy
setuptools >= 41 setuptools >= 50
opencv-python-headless opencv-python-headless
ocrd >= 2.22.3 ocrd >= 2.23.3
tensorflow-gpu >= 2.6.0 tensorflow >= 2.6.0

@ -91,7 +91,8 @@ class SbbBinarizer:
self.start_new_session() self.start_new_session()
self.model_files = glob('%s/*.h5' % self.model_dir) #self.model_files = glob('%s/*.h5' % self.model_dir)
self.model_files = glob(self.model_dir+"/*/", recursive = True)
self.models = [] self.models = []
for model_file in self.model_files: for model_file in self.model_files:

Loading…
Cancel
Save