Conversation
Signed-off-by: weedge <weege007@gmail.com>
…cr vision ocr bot with fastapi_webrtc_vision_bot_serve Signed-off-by: weedge <weege007@gmail.com>
Summary of ChangesHello @weedge, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request significantly enhances the platform's optical character recognition capabilities by integrating the DeepSeek-OCR model. It provides both Hugging Face Transformers and vLLM backends for the model and deploys a new vision bot that utilizes this advanced OCR technology. The changes also include necessary dependency updates and a refactoring of the core OCR interface to streamline functionality. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request introduces support for the DeepSeek-OCR model, adding implementations for both standard transformers and vLLM, along with Modal deployment configurations. The changes are substantial, including new Modal applications, a new OCR processor, and updates to dependencies and configurations. My review has identified a critical security vulnerability related to the use of eval() on model outputs, which must be addressed. I've also highlighted several areas for improvement in correctness, robustness, and adherence to best practices, such as unsafe path manipulations, potential runtime errors, and insecure use of subprocess. Addressing this feedback will significantly enhance the security and maintainability of the new functionality.
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
|
DeepSeek-OCR 3336.10624 M parameters |
AI Podcast:
feat:
daily_ocr_vision_bot.json
{ "chat_bot_name": "DailyOCRVisionBot", "room_name": "chat-room", "room_url": "", "token": "", "services": {}, "config": { "vad": { "tag": "silero_vad_analyzer", "args": { "start_secs": 0.0, "stop_secs": 0.0, "confidence": 0.7, "min_volume": 0.6, "onnx": true } }, "asr": { "tag": "sense_voice_asr", "args": { "language": "zn", "model_name_or_path": "/root/.achatbot/models/FunAudioLLM/SenseVoiceSmall" } }, "vision_ocr": { "tag": "llm_transformers_manual_vision_deepseek_ocr", "args": { "lm_model_name_or_path": "/root/.achatbot/models/deepseek-ai/DeepSeek-OCR", "lm_device": "cuda", "ocr_base_size":1024, "ocr_image_size":640, "ocr_crop_mode":true } }, "tts": { "tag": "tts_edge", "args": { "voice_name": "zh-CN-YunjianNeural", "language": "zh", "gender": "Male" } } }, "config_list": [] }reference
⭐️⭐️ 2021.03 Learning Transferable Visual Models From Natural Language Supervision | paper code (Embedding)
VITDET: Exploring Plain Vision Transformer Backbones for Object Detection
⭐️⭐️ 2023.04 Segment Anything | paper code (Tokenizer)
https://www.youtube.com/watch?v=AhkMKIQsBrw (非常好高效讲解)
2024.09 General OCR Theory: Towards OCR-2.0 via a Unified End-to-end Model | paper code
2024.12 DeepSeek-VL2: Mixture-of-Experts Vision-Language Models for Advanced Multimodal Understanding | paper code
2025.10 DeepSeek-OCR: Contexts Optical Compression | paper code
2024.12 OmniDocBench: Benchmarking Diverse PDF Document Parsing with Comprehensive Annotations | paper code