mirror of
https://github.com/opendatalab/MinerU.git
synced 2026-09-24 23:10:23 +08:00
feat: add logging for detection time in BatchAnalyze when OCR is not applied
This commit is contained in:
@@ -191,6 +191,8 @@ class BatchAnalyze:
|
||||
|
||||
if self.model.apply_ocr:
|
||||
logger.info(f"ocr time: {round(ocr_time, 2)}, image num: {ocr_count}")
|
||||
else:
|
||||
logger.info(f"det time: {round(ocr_time, 2)}, image num: {ocr_count}")
|
||||
if self.model.apply_table:
|
||||
logger.info(f"table time: {round(table_time, 2)}, image num: {table_count}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user