- 26 Mar, 2025 3 commits
-
-
icecraft authored
-
Xiaomeng Zhao authored
feat: batch inference with ocr and lang flag
-
icecraft authored
-
- 24 Mar, 2025 10 commits
-
-
Xiaomeng Zhao authored
refactor(pdf_parse): adjust line calculation for block height
-
myhloli authored
- Remove unnecessary addition of 1 when calculating lines for block height - This change affects the logic for both potential double-column and triple-column structures
-
Xiaomeng Zhao authored
refactor(pdf_parse): adjust line calculation for block height
-
myhloli authored
- Remove unnecessary addition of 1 when calculating lines for block height - This change affects the logic for both potential double-column and triple-column structures
-
Xiaomeng Zhao authored
fix(pre_proc): improve character overlap handling in OCR processing
-
myhloli authored
- Add condition to check for identical or space characters when resolving overlaps - Skip non-conflicting character pairs to prevent unnecessary removals
-
Xiaomeng Zhao authored
fix: support auto method and auto lang
-
icecraft authored
-
Xiaomeng Zhao authored
fix(magic_pdf): improve image resizing and padding in UnimerSwinn model
-
myhloli authored
- Comment out margin cropping to prevent errors with broken files - Refactor image resizing to preserve aspect ratio - Update padding calculation and application using OpenCV
-
- 22 Mar, 2025 2 commits
-
-
Xiaomeng Zhao authored
refactor(ocr): improve ONNX model initialization and resource handling
-
myhloli authored
- Replace deprecated importlib.resources.path with importlib.resources.files - Simplify code structure and improve readability - Remove unnecessary comments and empty lines
-
- 21 Mar, 2025 4 commits
-
-
Xiaomeng Zhao authored
feat(pre_proc): add function to remove x-overlapping characters in spans
-
myhloli authored
-
myhloli authored
- Implement `remove_x_overlapping_chars` function in `ocr_span_list_modify.py` - Integrate the new function in `pdf_parse_union_core_v2.py` to process spans - Remove unnecessary character replacement functions and comments
-
myhloli authored
- Comment out LayoutLMv3, TableMaster, and StructEqTable models - Update MFR model path to unimernet_hf_small_2503- Remove unused import in Unimernet.py
-
- 20 Mar, 2025 16 commits
-
-
Xiaomeng Zhao authored
Dev push
-
myhloli authored
- Remove separate condition for GPU memory >= 24GB - Simplify logic to use a single threshold of 16GB
-
myhloli authored
- Increase batch ratio to 32 for GPU memory >= 24GB - Set batch ratio to 16 for GPU memory >= 16GB - Reduce batch ratio to 8 for GPU memory >= 12GB - Lower batch ratio to 4 for GPU memory >= 8GB - Set batch ratio to 2 for GPU memory >= 6GB - Keep batch ratio at 1 for lower GPU memory sizes
-
myhloli authored
- Add bf_16_support check for CUDA and MPS devices - Use bfloat16 precision for layoutreader model on supported devices - Improve performance on devices with bf_16 support
-
Xiaomeng Zhao authored
refactor: remove torchtext deprecation warning handling
-
myhloli authored
- Remove torchtext version check and deprecation warning handling from multiple files - This code was unnecessary and potentially caused issues when torchtext was not installed
-
myhloli authored
-
Xiaomeng Zhao authored
refactor(magic_pdf): remove unnecessary half() calls for CPU devices
-
myhloli authored
- Remove half() calls for DocLayoutYOLO and YOLOv8 models - This change prevents potential errors when running models on CPU
-
Xiaomeng Zhao authored
build(docker&setup): add ftfy package
-
myhloli authored
- Added ftfy package to requirements.txt files for Ascend NPU, China, and Global Docker images - This change ensures consistent text formatting across all supported platforms
-
myhloli authored
- Add 'ftfy' package to the list of dependencies in setup.py - This change ensures that the ftfy package is installed along with other dependencies when setting up the project
-
Xiaomeng Zhao authored
Dev push
-
myhloli authored
- Add PaddleOCR model to the list of models to download - Update download_models.py and download_models_hf.py scripts to include PaddleOCR - Create user directory for PaddleOCR and copy downloaded models
-
myhloli authored
- Update config version to1.2.0 - Refactor model initialization in model_init.py- Update dependencies in requirements.txt files - Remove unused imports and models - Add conditional imports for table models
-
myhloli authored
- Add support for Apple M1 chips (mps device) - Refactor image processing for better performance and compatibility - Update model loading and inference for various devices - Adjust batch processing and memory management
-
- 19 Mar, 2025 5 commits
-
-
myhloli authored
- Add UnimerMBartConfig and UnimerSwinConfig classes - Implement UnimerSwinImageProcessor for image preprocessing- Create necessary __init__.py files for module structure
-
Xiaomeng Zhao authored
Remove pillow
-
Xiaomeng Zhao authored
refactor(ocr_mkcontent): improve title level handling and formatting
-
Xiaomeng Zhao authored
-
Xiaomeng Zhao authored
style: remove unused code
-