- 06 Dec, 2024 6 commits
-
-
myhloli authored
- Remove usage of AtomModelSingleton for OCR model initialization - Add import of ocr_model_init from model_init module - Update OCR model initialization process to use ocr_model_init function - Remove lock for OCR processing as it's no longer needed
-
myhloli authored
- Remove usage of ModelSingleton class - Initialize model directly using custom_model_init function - Add self._lock attribute to PDFExtractKit class for thread safety- Replace local lock with self._lock for OCR processing
-
myhloli authored
-
赵小蒙 authored
- Remove unnecessary threading.Lock in AtomModelSingleton - Add threading.Lock to CustomPEKModel for OCR processing - Simplify model initialization logic in AtomModelSingleton
-
Xiaomeng Zhao authored
perf(model): optimize model initialization
-
myhloli authored
- Add condition to return existing model if already initialized - Improve efficiency by avoiding redundant model creation
-
- 05 Dec, 2024 2 commits
-
-
Xiaomeng Zhao authored
perf(model): add threading lock for OCR model initialization
-
myhloli authored
- Introduce a lock to synchronize access to OCR model initialization- This change improves thread safety when multiple threads access the OCR model concurrently - The lock ensures that the OCR model is initialized only once, even in multi-threaded scenarios
-
- 03 Dec, 2024 3 commits
-
-
Xiaomeng Zhao authored
feat(gradio_app): implement dynamic concurrency limit based on VRAM
-
myhloli authored
- Update VRAM checking logic in app.py and model_utils.py - Add None and type checks for VRAM values - Adjust concurrency limit calculation in app.py - Modify clean_vram function to handle cases with no VRAM information
-
myhloli authored
- Add get_concurrency_limit function to calculate concurrency limit based on VRAM - Update clean_vram function and rename to get_vram for better clarity - Apply concurrency limit to the to_markdown function in the Gradio app
-
- 02 Dec, 2024 8 commits
-
-
Xiaomeng Zhao authored
master->dev
-
myhloli authored
-
Xiaomeng Zhao authored
Release 0.10.5
-
Xiaomeng Zhao authored
Dev -> 0.10.5
-
Xiaomeng Zhao authored
fix(pre_proc): prevent errors when imageWriter is None
-
Xiaomeng Zhao authored
refactor(para): adjust line height multiplier for block splitting,fix(pre_proc): prevent errors when imageWriter is None
-
myhloli authored
- Decrease the maximum width and height from 9000 to 4500 pixels - This change aims to prevent excessive resource usage when rendering PDFs
-
myhloli authored
- Updated cut_image.py to check for NoneType imageWriter - Prevents AttributeError when imageWriter is not provided
-
- 30 Nov, 2024 4 commits
-
-
Xiaomeng Zhao authored
refactor(para): adjust line height multiplier for block splitting
-
myhloli authored
- Decrease the line height multiplier from 0.8 to 0.7 for both left and right sides - This modification aims to improve the accuracy of paragraph splitting
-
Xiaomeng Zhao authored
-
houlinfeng authored
-
- 29 Nov, 2024 16 commits
-
-
myhloli authored
-
Xiaomeng Zhao authored
Release 0.10.4
-
Xiaomeng Zhao authored
fix(mkcontent): optimize paragraph text merging and language detection
-
myhloli authored
- Remove overlap between bboxes for block separation - Sort bboxes by combined x and y coordinates for better layout handling - Comment out previous overlap removal function
-
myhloli authored
- Extract language detection to block level instead of line level - Improve logic for handling Chinese, Japanese, and Korean languages - Refactor code for better readability and performance - Optimize handling of hyphenated words at line ends
-
myhloli authored
-
myhloli authored
- Introduce language detection to determine line spacing based on language context - Implement different spacing rules for Chinese/Japanese/Korean and Western texts - Adjust span content handling based on detected language and span type
-
Xiaomeng Zhao authored
master->dev
-
myhloli authored
-
Xiaomeng Zhao authored
Release 0.10.3
-
Xiaomeng Zhao authored
refactor(ocr): Fix the error of paddleocr failing to initialize in a multi-threaded environment
-
myhloli authored
-
Xiaomeng Zhao authored
refactor(pdf_parse): adjust character-axis alignment algorithm
-
myhloli authored
- Introduce `span_height_radio` parameter to calculate_char_in_span function - Replace fixed ratio with dynamic ratio for character and span axis alignment - Improve flexibility and accuracy of character placement within spans
-
Xiaomeng Zhao authored
fix(ocr_mkcontent): handle empty paragraphs on pages
-
myhloli authored
- Add empty paragraph handling for pages with no content - Append an empty markdown object when a page has no paragraphs - Increment page number even if no content is present
-
- 28 Nov, 2024 1 commit
-
-
Xiaomeng Zhao authored
feat(pdf_parse): add line start flag detection and optimize line stop flag logic
-