Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.
Python ai4sciencedocument-analysisdocxextract-datalayout-analysisocrparserpdfpdf-converterpdf-extractor-llmpdf-extractor-pretrainpdf-extractor-ragpdf-parserpptxpythonxlsx
feat(model): add logging for batch image processing
myhlolib29b73af2182
diff --git a/magic_pdf/model/doc_analyze_by_custom_model.py b/magic_pdf/model/doc_analyze_by_custom_model.pyindex bfec0c98..e3b418bc 100644--- a/magic_pdf/model/doc_analyze_by_custom_model.py+++ b/magic_pdf/model/doc_analyze_by_custom_model.py@@ -156,7 +156,10 @@ def doc_analyze(batch_images = [images_with_extra_info]results = []- for batch_image in batch_images:+ processed_images_count = 0+ for index, batch_image in enumerate(batch_images):+ processed_images_count += len(batch_image)+ logger.info(f'Batch {index + 1}/{len(batch_images)}: {processed_images_count} pages/{len(images_with_extra_info)} pages')result = may_batch_image_analyze(batch_image, ocr, show_log,layout_model, formula_enable, table_enable)results.extend(result)