- 06 Jan, 2025 5 commits
-
-
Xiaomeng Zhao authored
-
myhloli authored
- Update package sources to use Aliyun mirrors for faster downloads - Upgrade pip and install Python packages in virtual environment - Add python3.10-dev package to Huawei NPU Dockerfile - Update requirements file URLs to master branch- Install specific version of torch_npu in Huawei NPU Dockerfile - Update magic-pdf installation method - Improve modelscope installation process - Optimize model download and configuration update steps
-
myhloli authored
- Update Dockerfiles in china, global, and huawei_npu directories - Improve wget commands by specifying output file names - Update READMEs to reflect new Dockerfile locations
-
myhloli authored
-
myhloli authored
- Add Dockerfile for global setup with Ubuntu base image - Add Dockerfile for Huawei NPU setup with Ascend base image - Update requirements file structure: - Rename requirements-docker.txt to docker/china/requirements.txt - Add new requirements files for global and Huawei NPU setups - Install necessary packages and dependencies in both Dockerfiles- Set up virtual environment and install Python packages - Download models and configure magic-pdf for both setups
-
- 05 Jan, 2025 4 commits
-
-
myhloli authored
- Add section for using NPU acceleration in both English and Chinese README files - Update system requirements to include CANN environment for NPU support - Enhance the "Quick Start" guide with NPU-related information- Modify hardware requirements to specify "Ascend 910b" for NPU acceleration
-
myhloli authored
- Add `draw_char_bbox` function to `draw_bbox.py` for drawing character bounding boxes - Integrate `draw_char_bbox` into `common.py` for use in PDF processing pipeline - Include option to draw character bounding boxes in debug mode
-
myhloli authored
style(pdf_parse_union_core_v2): remove unnecessary spaces and improve code formatting- Remove extra space in conditional statement for character spacing logic - Adjust spacing in trigonometric checks for line direction- Improve overall code readability and consistency
-
myhloli authored
- Add missing 'else' statement in OCR model selection logic - Ensure consistent formatting of 'if' statements for better readability - Remove unnecessary empty line in the 'app.py' file
-
- 03 Jan, 2025 4 commits
-
-
myhloli authored
- Remove logger.info() call for additional_ocr_params to reduce log verbosity
-
myhloli authored
- Implement ONNXModelSingleton to manage ONNX models - Modify ModifiedPaddleOCR to use ONNX models on ARM CPUs without CUDA - Update RapidTableModel to use RapidOCR with ONNXRuntime on CPU - Add rapidocr_onnxruntime dependency in setup.py
-
Xiaomeng Zhao authored
fix(web_api): Modify the import path of InferenceResult
-
yzz authored
-
- 02 Jan, 2025 3 commits
-
-
Xiaomeng Zhao authored
refactor(pdf_parse): improve character spacing handling in PDF text extraction
-
myhloli authored
- Update the logic for inserting spaces between characters- Consider the next character's position instead of the previous one - Adjust the spacing threshold to 25% of the average character width - Ignore spaces at the end of lines to prevent double spaces
-
myhloli authored
- Update the logic for inserting spaces between characters- Consider the next character's position instead of the previous one - Adjust the spacing threshold to 25% of the average character width - Ignore spaces at the end of lines to prevent double spaces
-
- 30 Dec, 2024 3 commits
-
-
myhloli authored
- Remove use_npu variable initialization - Comment out device assignment and npu check - Comment out use_npu parameter in ModifiedPaddleOCR constructor
-
myhloli authored
- Update `clean_memory.py` to use `torch_npu.npu` instead of `torch.npu` - Update `model_utils.py` to use `torch_npu.npu` instead of `torch.npu` - Simplify NPU availability check and bfloat16 support in `pdf_parse_union_core_v2.py`
-
myhloli authored
- Remove upper version limit for pydantic dependency - This change allows for the use of the latest pydantic version
-
- 27 Dec, 2024 3 commits
-
-
Xiaomeng Zhao authored
fix: s3 path join method
-
icecraft authored
-
myhloli authored
- Add openai package to requirements-docker.txt
-
- 26 Dec, 2024 4 commits
-
-
myhloli authored
- Update clean_memory function to support both CUDA and NPU devices - Implement get_device function to centralize device selection logic - Modify model initialization and memory cleaning to use the selected device - Update RapidTableModel to support both RapidOCR and PaddleOCR engines
-
myhloli authored
- Add NPU support for memory cleaning and model initialization - Optimize table model initialization and prediction process - Update memory utils to support NPU - Add language parameter for table model
-
Xiaomeng Zhao authored
build(deps): upgrade unimernet to 0.2.3
-
myhloli authored
- Update unimernet from 0.2.2 to 0.2.3 in requirements-docker.txt and setup.py - Remove torchtext/eva-decord dependency
-
- 25 Dec, 2024 3 commits
-
-
Xiaomeng Zhao authored
feat(llm_aided): add title optimization feature
-
myhloli authored
- Comment out logging statements for title list, title completion, and length comparison - Improve code readability and reduce clutter by removing unused debug information
-
myhloli authored
- Implement llm_aided_title function to optimize document titles using LLM - Update pdf_parse_union_core_v2.py to include title optimization - Modify ocr_mkcontent.py to use optimized title levels- Add openai SDK dependency in setup.py
-
- 24 Dec, 2024 2 commits
-
-
Xiaomeng Zhao authored
feat(llm): add LLM-aided formula and text correction
-
myhloli authored
- Add LLM-aided formula and text correction functionality - Update config reader to include LLM-aided settings - Create new LLM-aided processing module - Update main processing script to incorporate LLM-aided corrections - Modify download scripts to check for new config version
-
- 20 Dec, 2024 5 commits
-
-
Xiaomeng Zhao authored
refactor(pre_proc): improve character overlap handling in spans
-
myhloli authored
-
myhloli authored
- Remove remove_overlaps_chars function - Add check_chars_is_overlap_in_span function - Update span processing logic to handle character overlaps- Improve efficiency and readability of overlap detection
-
Xiaomeng Zhao authored
docs: add more method description
-
xu rui authored
-
- 19 Dec, 2024 4 commits
-
-
Xiaomeng Zhao authored
feat(demo): add demo script for PDF processing
-
myhloli authored
- Create demo.py script for PDF file processing - Implement PDF reading, classification, and inference usingOpendatalab's magic_pdf library- Add pipelines for OCR and text modes - Include result visualization and markdown export
-
Xiaomeng Zhao authored
feat(pre_proc): add function to remove overlapping characters in spans
-
myhloli authored
- Implement remove_overlaps_chars function to detect and remove overlapping characters within spans - Integrate remove_overlaps_chars function into the PDF parsing process - Improve character-level processing and reduce redundancy in OCR results
-