magicyuan876 / mineru-server

MinerU API Server
9 stars 1 forks source link

Contribution: Enhanced Docker Setup with CPU-Compatible Detectron2 and Other Improvements #1

Open ulan-yisaev opened 3 months ago

ulan-yisaev commented 3 months ago

Hi @magicyuan876,

I've been working with the mineru-server and have made several enhancements that I believe could be beneficial to the project:

Key Improvements:

  1. Docker Setup:

    • Added a Dockerfile that sets up Detectron2 for CPU environments, making it easier to run the project as a microservice.
    • Integrated a more efficient way to handle model downloads on application startup, further optimizing the image size.
  2. Logging Enhancements:

    • Improved logging to provide real-time command output for better debugging and monitoring.
  3. Code Refactoring:

    • Applied various code refactoring techniques to ensure the code is more maintainable and production-ready.

I’ve pushed these changes to my fork of the repository here, and I’m happy to discuss any of the changes in more detail.

Would you be interested in reviewing and potentially merging these improvements into the main repository? I’d love to contribute to the project!

Looking forward to your thoughts.

magicyuan876 commented 2 months ago

@ulan-yisaev 非常感谢,本心只是做个小工具抛砖引玉。期待您的提交,谢谢。