1. 11 Feb, 2025 2 commits
  2. 10 Feb, 2025 2 commits
  3. 09 Feb, 2025 1 commit
  4. 07 Feb, 2025 1 commit
  5. 27 Jan, 2025 2 commits
  6. 21 Jan, 2025 6 commits
  7. 20 Jan, 2025 2 commits
  8. 17 Jan, 2025 2 commits
  9. 16 Jan, 2025 3 commits
  10. 15 Jan, 2025 1 commit
  11. 14 Jan, 2025 2 commits
  12. 10 Jan, 2025 1 commit
  13. 09 Jan, 2025 3 commits
  14. 08 Jan, 2025 2 commits
  15. 06 Jan, 2025 2 commits
  16. 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
  17. 03 Jan, 2025 2 commits
  18. 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
  19. 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
  20. 18 Dec, 2024 1 commit
    • myhloli's avatar
      refactor(magic_pdf): move model config variables · 489f70e9
      myhloli authored
      - Move __use_inside_model__ and __model_mode__ from operators/__init__.py to model/__init__.py
      - These variables are more appropriately located in the model module since they relate to model configuration
      489f70e9