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
fix: add version check for PyTorch to prevent errors in batch prediction
myhloliaa39e61fef87
diff --git a/mineru/model/ori_cls/paddle_ori_cls.py b/mineru/model/ori_cls/paddle_ori_cls.pyindex bc17c2cb..c34986f3 100644--- a/mineru/model/ori_cls/paddle_ori_cls.py+++ b/mineru/model/ori_cls/paddle_ori_cls.py@@ -174,6 +174,12 @@ class PaddleOrientationClsModel:def batch_predict(self, imgs: List[Dict], det_batch_size: int, batch_size: int = 16) -> None:++ import torch+ from packaging import version+ if version.parse(torch.__version__) >= version.parse("2.8.0"):+ return None+"""批量预测传入的包含图片信息列表的旋转信息,并且将旋转过的图片正确地旋转回来"""