- 02 Apr, 2025 8 commits
-
-
myhloli authored
- Update PyMuPDF to version <1.25.0 - Update pydantic to version <2.11 - Update transformers to version < 5.0.0 - Remove always_apply parameter from alb.ToGray in image processing
-
myhloli authored
- Update the default configuration path in pytorchocr_utility.py - Add required dependencies for paddleocr2pytorch in setup.py: - shapely - pyclipper - omegaconf
-
myhloli authored
- Remove unused UniMERNet and LayoutLMv3 model configurations - Update OCR model path and dictionary path for PaddleOCR - Modify README to update system requirements and installation instructions - Update setup.py to include new package data
-
myhloli authored
- Remove unused imports for concurrent.futures, multiprocessing, and paddle - Delete commented-out code - Update numpy dependency to remove upper version limit - Remove InferenceResult import that was commented out
-
myhloli authored
- Add newline at the beginning of arabic_dict.txt - Change mode of multiple dictionary files
-
myhloli authored
- Remove OCR utils, modified PaddleOCR, and StructEqTable model - Delete related import statements and model definitions - Update dependencies in setup.py to remove paddlepaddle and related OCR packages
-
myhloli authored
- Comment out print statements in base_ocr_v20.py and pytorch_paddle.py - Update table model initialization to use lang parameter instead of ocr_engine - Remove unused RapidOCR initialization in rapid_table.py
-
myhloli authored
- Comment out OCR model initialization and execution for low-contrast spans - Add batch OCR processing for collected image spans - Adjust contrast threshold for OCR processing - Remove unnecessary OCR processing for high-contrast spans - Implement more efficient OCR workflow by processing multiple spans at once
-
- 01 Apr, 2025 4 commits
-
-
myhloli authored
- Enhance the logging of execution times by adding more detailed function identification - Implement class name and module name inclusion for better traceability
-
myhloli authored
- Remove unused OCR dictionaries for Arabic, Belarusian, Bulgarian and Armenian languages - Update model configurations in arch_config.yaml: - Comment out 'out_channels' for various language models - Rename Arabic, Korean, Japanese, Tamil and Devanagari model configurations to use 'v3' instead of 'v4' - Delete ar_dict.txt, be_dict.txt and bg_dict.txt files - Update arabic_dict.txt to remove blank line at the start
-
myhloli authored
- Remove unused imports and code - Simplify model architecture by removing unnecessary components - Update initialization and forward pass logic - Rename variables for consistency
-
myhloli authored
- Added warnings module to import list - Implemented a warning catcher to ignore FutureWarning from the transformers module - This change prevents unnecessary warning messages during model inference
-
- 31 Mar, 2025 3 commits
-
-
myhloli authored
- Replace direct OCR model access with AtomModelSingleton for better model management - Round OCR scores to 2 decimal places for consistency - Improve error handling and logging in batch analysis - Simplify OCR result processing in pdf_parse_union_core_v2.py
-
myhloli authored
- Add support for multiple languages in OCR processing - Create separate lists for each language to improve processing efficiency - Update OCR model initialization to use PytorchPaddleOCR instead of ModifiedPaddleOCR - Modify get_ocr_result_list function to include language information- Improve logging for OCR detection and recognition
-
myhloli authored
- Split OCR process into detection and recognition stages - Update batch analysis and document analysis pipelines - Modify OCR result formatting and handling - Remove unused imports and optimize code structure
-
- 27 Mar, 2025 1 commit
-
-
myhloli authored
- Add base model structure for OCR in pytorch - Implement data augmentation and transformation modules - Create utilities for dictionary handling and state dict conversion - Include post-processing modules for OCR - Add weight initialization and loading functions
-
- 26 Mar, 2025 2 commits
- 24 Mar, 2025 5 commits
-
-
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
-
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
-
myhloli authored
- Add condition to check for identical or space characters when resolving overlaps - Skip non-conflicting character pairs to prevent unnecessary removals
-
icecraft authored
-
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 1 commit
-
-
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 2 commits
-
-
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 7 commits
-
-
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
-
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
- Remove half() calls for DocLayoutYOLO and YOLOv8 models - This change prevents potential errors when running models on CPU
-
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 2 commits
- 17 Mar, 2025 1 commit
-
-
myhloli authored
- Move title level determination to the beginning of the Title block processing - Add condition to include text_level only if it's not 0 - Adjust title level to 0 instead of 1 when it's less than 1
-
- 13 Mar, 2025 4 commits