Unverified Commit f0b66d3a authored by Xiaomeng Zhao's avatar Xiaomeng Zhao Committed by GitHub
Browse files

Merge pull request #2410 from myhloli/dev

feat(model): add logging for batch image processing
parents 5e8656c7 b29b73af
...@@ -156,7 +156,10 @@ def doc_analyze( ...@@ -156,7 +156,10 @@ def doc_analyze(
batch_images = [images_with_extra_info] batch_images = [images_with_extra_info]
results = [] 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) result = may_batch_image_analyze(batch_image, ocr, show_log,layout_model, formula_enable, table_enable)
results.extend(result) results.extend(result)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment