diff --git a/qurator/sbb_textline_detector/main.py b/qurator/sbb_textline_detector/main.py index f489595..9c348de 100644 --- a/qurator/sbb_textline_detector/main.py +++ b/qurator/sbb_textline_detector/main.py @@ -1607,6 +1607,9 @@ class textlineerkenner: self.deskew_textline_patches(contours, boxes) self.write_into_page_xml(contours,page_coord,self.dir_out , order_of_texts , id_of_texts) + # Destroy the current Keras session/graph to free memory + K.clear_session() + @click.command() @click.option('--image', '-i', help='image filename', type=click.Path(exists=True, dir_okay=False))