Skip to content

Commit

Permalink
TLDR-462 -- calling ColumnsOrientationClassifier with gpu
Browse files Browse the repository at this point in the history
  • Loading branch information
raxtemur committed Oct 25, 2023
1 parent 7b0ef0b commit dd74a65
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def __init__(self, *, config: dict) -> None:
"""
super().__init__(config=config)
self.scew_corrector = SkewCorrector()
self.column_orientation_classifier = ColumnsOrientationClassifier(on_gpu=False, checkpoint_path=get_config()["resources_path"], config=config)
self.column_orientation_classifier = ColumnsOrientationClassifier(on_gpu=self.config.get("on_gpu", False), checkpoint_path=get_config()["resources_path"], config=config)
self.binarizer = AdaptiveBinarizer()
self.ocr = OCRLineExtractor(config=config)
self.logger = config.get("logger", logging.getLogger())
Expand Down

0 comments on commit dd74a65

Please sign in to comment.