From 69cb31799d3eaabdf855f559672867f73f07c5cb Mon Sep 17 00:00:00 2001 From: ahn Date: Mon, 17 Feb 2025 10:20:25 +0100 Subject: [PATCH] Revert accelerator test options Signed-off-by: ahn --- docs/examples/run_with_accelerator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/examples/run_with_accelerator.py b/docs/examples/run_with_accelerator.py index e29333e0..6e81e853 100644 --- a/docs/examples/run_with_accelerator.py +++ b/docs/examples/run_with_accelerator.py @@ -31,11 +31,11 @@ def main(): # ) # easyocr doesnt support cuda:N allocation, defaults to cuda:0 - accelerator_options = AcceleratorOptions(num_threads=8, device="cuda:1") + # accelerator_options = AcceleratorOptions(num_threads=8, device="cuda:1") pipeline_options = PdfPipelineOptions() pipeline_options.accelerator_options = accelerator_options - pipeline_options.do_ocr = False + pipeline_options.do_ocr = True pipeline_options.do_table_structure = True pipeline_options.table_structure_options.do_cell_matching = True