1. 09 Jan, 2025 1 commit
  2. 08 Jan, 2025 2 commits
  3. 06 Jan, 2025 2 commits
  4. 05 Jan, 2025 1 commit
    • myhloli's avatar
      fix(magic-pdf): update OCR model selection logic · 16a0a350
      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
      16a0a350
  5. 03 Jan, 2025 2 commits
  6. 30 Dec, 2024 2 commits
    • myhloli's avatar
      refactor(magic_pdf): comment out npu-related code · 88b909e2
      myhloli authored
      - Remove use_npu variable initialization
      - Comment out device assignment and npu check
      - Comment out use_npu parameter in ModifiedPaddleOCR constructor
      88b909e2
    • myhloli's avatar
      fix(npu): correct module name for NPU operations · 2684e775
      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`
      2684e775
  7. 26 Dec, 2024 2 commits
    • myhloli's avatar
      refactor(device): optimize memory cleaning and device selection · 50f48417
      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
      50f48417
    • myhloli's avatar
      feat(model): add npu support and optimize table model · 7990e7df
      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
      7990e7df
  8. 18 Dec, 2024 2 commits
  9. 17 Dec, 2024 1 commit
  10. 16 Dec, 2024 1 commit
  11. 13 Dec, 2024 2 commits
  12. 12 Dec, 2024 3 commits
  13. 11 Dec, 2024 2 commits
  14. 10 Dec, 2024 4 commits
    • myhloli's avatar
      refactor(model): update import paths for PaddleOCR modules · 061c03a0
      myhloli authored
      - Change import paths from paddleocr.ppocr to ppocr for utility functions
      - Update import paths for logging and utility modules in ppocr_273_mod.py- Modify import paths for tablemaster_paddle.py to use ppstructure instead of paddleocr.ppstructure
      061c03a0
    • myhloli's avatar
      refactor(tablemaster): update import paths for TableSystem and init_args · 01cd633d
      myhloli authored
      - Change import path for TableSystem from 'ppstructure.table.predict_table' to 'paddleocr.ppstructure.table.predict_table'
      - Change import path for init_args from 'ppstructure.utility' to 'paddleocr.ppstructure.utility'
      01cd633d
    • myhloli's avatar
      refactor(magic_pdf): update paddleocr module import paths · 56fad23d
      myhloli authored
      - Modify import paths for paddleocr utilities in ocr_utils.py and ppocr_273_mod.py
      - Change from `ppocr.utils.utility` to `paddleocr.ppocr.utils.utility`
      - Update related import statements in two files to reflect the new path
      56fad23d
    • myhloli's avatar
      fix(magic_pdf): disable PaddlePaddle signal handler · dd7f6781
      myhloli authored
      - Import paddle module and disable its signal handler to prevent interference with other components
      - This change addresses potential conflicts between PaddlePaddle and other libraries or system signals
      dd7f6781
  15. 09 Dec, 2024 2 commits
  16. 07 Dec, 2024 1 commit
  17. 06 Dec, 2024 9 commits
  18. 05 Dec, 2024 1 commit
    • myhloli's avatar
      perf(model): add threading lock for OCR model initialization · 04478095
      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
      04478095