{"id":60123,"date":"2025-10-25T06:03:49","date_gmt":"2025-10-24T22:03:49","guid":{"rendered":"https:\/\/www.kdjingpai.com\/?p=60123"},"modified":"2025-10-25T06:04:31","modified_gmt":"2025-10-24T22:04:31","slug":"deepseek-ocryiba","status":"publish","type":"post","link":"https:\/\/www.kdjingpai.com\/ja\/deepseek-ocryiba\/","title":{"rendered":"DeepSeek-OCR\uff1a\u4e00\u4e2a\u5f00\u6e90\u7684\u5149\u5b66\u5b57\u7b26\u8bc6\u522b\uff08OCR\uff09\u5de5\u5177"},"content":{"rendered":"<p>DeepSeek-OCR \u662f\u7531\u6df1\u5ea6\u6c42\u7d22\uff08DeepSeek-AI\uff09\u516c\u53f8\u5f00\u53d1\u5e76\u5f00\u6e90\u7684\u4e00\u6b3e\u5149\u5b66\u5b57\u7b26\u8bc6\u522b\uff08OCR\uff09\u5de5\u5177\u3002 \u5b83\u63d0\u51fa\u4e86\u4e00\u4e2a\u540d\u4e3a\u201c\u4e0a\u4e0b\u6587\u5149\u5b66\u538b\u7f29\u201d\u7684\u65b0\u65b9\u6cd5\uff0c\u4ece\u5927\u8bed\u8a00\u6a21\u578b\uff08LLM\uff09\u7684\u89d2\u5ea6\u6765\u91cd\u65b0\u770b\u5f85\u89c6\u89c9\u7f16\u7801\u5668\u7684\u89d2\u8272\u3002 \u8fd9\u4e2a\u5de5\u5177\u4e0d\u662f\u7b80\u5355\u5730\u8bc6\u522b\u56fe\u7247\u4e2d\u7684\u6587\u5b57\uff0c\u800c\u662f\u5148\u5c06\u6587\u6863\u9875\u9762\u8fd9\u6837\u7684\u957f\u6587\u672c\u5185\u5bb9\u6e32\u67d3\u6210\u56fe\u50cf\uff0c\u518d\u5c06\u56fe\u50cf\u538b\u7f29\u6210\u4e00\u7ec4\u6570\u91cf\u8f83\u5c11\u7684\u201c\u89c6\u89c9\u4ee4\u724c\u201d\uff08vision tokens\uff09\u3002 \u7136\u540e\uff0c\u8bed\u8a00\u6a21\u578b\u89e3\u7801\u5668\u4ece\u8fd9\u4e9b\u89c6\u89c9\u4ee4\u724c\u4e2d\u91cd\u5efa\u51fa\u539f\u59cb\u6587\u672c\u3002\u8fd9\u79cd\u65b9\u5f0f\u80fd\u591f\u5c06\u8f93\u5165\u4ee4\u724c\u7684\u6570\u91cf\u51cf\u5c117\u523020\u500d\uff0c\u4ece\u800c\u8ba9\u5927\u6a21\u578b\u80fd\u7528\u66f4\u5c11\u7684\u8ba1\u7b97\u8d44\u6e90\u5904\u7406\u8d85\u957f\u6587\u6863\uff0c\u63d0\u9ad8\u4e86\u5904\u7406\u6548\u7387\u548c\u901f\u5ea6\u3002 \u8be5\u9879\u76ee\u9075\u5faaMIT\u5f00\u6e90\u8bb8\u53ef\u534f\u8bae\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-60124\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/10\/e4290fead872ca7-scaled.png\" alt=\"\" width=\"2560\" height=\"1115\" srcset=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/10\/e4290fead872ca7-scaled.png 2560w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/10\/e4290fead872ca7-1536x669.png 1536w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/10\/e4290fead872ca7-2048x892.png 2048w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/10\/e4290fead872ca7-18x8.png 18w\" sizes=\"auto, (max-width: 2560px) 100vw, 2560px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2>\u529f\u80fd\u5217\u8868<\/h2>\n<ul>\n<li><strong>\u4e0a\u4e0b\u6587\u5149\u5b66\u538b\u7f29<\/strong>\uff1a\u901a\u8fc7\u5c06\u56fe\u50cf\u538b\u7f29\u6210\u89c6\u89c9\u4ee4\u724c\uff0c\u5927\u5e45\u51cf\u5c11\u6a21\u578b\u5904\u7406\u7684\u6570\u636e\u91cf\uff0c\u964d\u4f4e\u4e86\u5185\u5b58\u4f7f\u7528\u5e76\u63d0\u5347\u4e86\u63a8\u7406\u901f\u5ea6\u3002<\/li>\n<li><strong>\u9ad8\u7cbe\u5ea6\u8bc6\u522b<\/strong>\uff1a\u572810\u500d\u538b\u7f29\u7387\u4e0b\uff0c\u4f9d\u7136\u53ef\u4ee5\u8fbe\u523097%\u5de6\u53f3\u7684\u8bc6\u522b\u51c6\u786e\u7387\uff0c\u80fd\u591f\u4fdd\u7559\u6587\u6863\u7684\u5e03\u5c40\u3001\u6392\u7248\u548c\u7a7a\u95f4\u5173\u7cfb\u3002<\/li>\n<li><strong>\u7ed3\u6784\u5316\u8f93\u51fa<\/strong>\uff1a\u80fd\u591f\u5c06\u6587\u6863\uff0c\u7279\u522b\u662f\u5305\u542b\u590d\u6742\u5e03\u5c40\uff08\u5982\u8868\u683c\u3001\u5217\u8868\u3001\u6807\u9898\uff09\u7684\u9875\u9762\uff0c\u76f4\u63a5\u8f6c\u6362\u4e3aMarkdown\u683c\u5f0f\uff0c\u4fdd\u7559\u4e86\u539f\u6587\u7684\u7ed3\u6784\u3002<\/li>\n<li><strong>\u591a\u79cd\u4efb\u52a1\u652f\u6301<\/strong>\uff1a\u901a\u8fc7\u4fee\u6539\u8f93\u5165\u63d0\u793a\u8bcd\uff08Prompt\uff09\uff0c\u6a21\u578b\u53ef\u4ee5\u6267\u884c\u4e0d\u540c\u7684\u4efb\u52a1\uff0c\u4f8b\u5982\uff1a\n<ul>\n<li>\u5c06\u6574\u4e2a\u6587\u6863\u8f6c\u6362\u4e3aMarkdown\u3002<\/li>\n<li>\u5bf9\u56fe\u7247\u8fdb\u884c\u901a\u7528OCR\u8bc6\u522b\u3002<\/li>\n<li>\u89e3\u6790\u6587\u6863\u4e2d\u7684\u56fe\u8868\u3002<\/li>\n<li>\u8be6\u7ec6\u63cf\u8ff0\u56fe\u7247\u5185\u5bb9\u3002<\/li>\n<\/ul>\n<\/li>\n<li><strong>\u591a\u79cd\u5206\u8fa8\u7387\u6a21\u5f0f<\/strong>\uff1a\u652f\u6301\u4ece512&#215;512\u52301280&#215;1280\u7684\u591a\u79cd\u56fa\u5b9a\u5206\u8fa8\u7387\uff0c\u4ee5\u53ca\u4e00\u4e2a\u52a8\u6001\u5206\u8fa8\u7387\u6a21\u5f0f\uff0c\u7528\u4e8e\u5904\u7406\u8d85\u9ad8\u5206\u8fa8\u7387\u7684\u6587\u6863\u3002<\/li>\n<li><strong>\u9ad8\u6027\u80fd\u63a8\u7406<\/strong>\uff1a\u96c6\u6210\u4e86vLLM\u548cTransformers\u6846\u67b6\uff0c\u5728A100-40G\u7684GPU\u4e0a\u5904\u7406PDF\u6587\u4ef6\u65f6\uff0c\u901f\u5ea6\u53ef\u8fbe\u7ea62500 tokens\/\u79d2\u3002<\/li>\n<li><strong>\u624b\u5199\u4f53\u8bc6\u522b<\/strong>\uff1a\u5728\u5149\u7167\u548c\u5206\u8fa8\u7387\u826f\u597d\u7684\u60c5\u51b5\u4e0b\uff0c\u5bf9\u624b\u5199\u5185\u5bb9\u7684\u8bc6\u522b\u6548\u679c\u4f18\u4e8e\u8bb8\u591a\u4f20\u7edfOCR\u5de5\u5177\u3002<\/li>\n<\/ul>\n<h2>\u4f7f\u7528\u5e2e\u52a9<\/h2>\n<p>DeepSeek-OCR\u7684\u5b89\u88c5\u548c\u4f7f\u7528\u4e3b\u8981\u9762\u5411\u5f00\u53d1\u8005\uff0c\u9700\u8981\u4e00\u5b9a\u7684\u7f16\u7a0b\u57fa\u7840\u3002\u4ee5\u4e0b\u662f\u8be6\u7ec6\u7684\u64cd\u4f5c\u6d41\u7a0b\uff0c\u4e3b\u8981\u5206\u4e3a\u73af\u5883\u914d\u7f6e\u3001\u5b89\u88c5\u548c\u4ee3\u7801\u63a8\u7406\u4e09\u4e2a\u90e8\u5206\u3002<\/p>\n<h3><strong>\u7b2c\u4e00\u6b65\uff1a\u73af\u5883\u51c6\u5907<\/strong><\/h3>\n<p>\u5b98\u65b9\u63a8\u8350\u7684\u73af\u5883\u4e3aCUDA 11.8\u4ee5\u53caPyTorch 2.6.0\u3002 \u5f00\u59cb\u4e4b\u524d\uff0c\u4f60\u9700\u8981\u5b89\u88c5Git\u548cConda\u3002<\/p>\n<ol>\n<li><strong>\u514b\u9686\u9879\u76ee\u4ed3\u5e93<\/strong><br \/>\n\u9996\u5148\uff0c\u4eceGitHub\u4e0a\u514b\u9686DeepSeek-OCR\u7684\u5b98\u65b9\u4ee3\u7801\u5e93\u5230\u4f60\u7684\u672c\u5730\u7535\u8111\u3002\u6253\u5f00\u7ec8\u7aef\uff08\u547d\u4ee4\u884c\u5de5\u5177\uff09\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre><code>git clone https:\/\/github.com\/deepseek-ai\/DeepSeek-OCR.git\r\n<\/code><\/pre>\n<p>\u6267\u884c\u540e\uff0c\u4f1a\u5728\u5f53\u524d\u76ee\u5f55\u4e0b\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a<code>DeepSeek-OCR<\/code>\u7684\u6587\u4ef6\u5939\u3002<\/li>\n<li><strong>\u521b\u5efa\u5e76\u6fc0\u6d3bConda\u73af\u5883<\/strong><br \/>\n\u4e3a\u4e86\u907f\u514d\u4e0e\u4f60\u7535\u8111\u4e0a\u5176\u4ed6Python\u9879\u76ee\u4ea7\u751f\u4f9d\u8d56\u51b2\u7a81\uff0c\u5efa\u8bae\u521b\u5efa\u4e00\u4e2a\u72ec\u7acb\u7684Conda\u865a\u62df\u73af\u5883\u3002<\/p>\n<pre><code># \u521b\u5efa\u4e00\u4e2a\u540d\u4e3adeepseek-ocr\u7684Python 3.12.9\u73af\u5883\r\nconda create -n deepseek-ocr python=3.12.9 -y\r\n# \u6fc0\u6d3b\u8fd9\u4e2a\u65b0\u521b\u5efa\u7684\u73af\u5883\r\nconda activate deepseek-ocr\r\n<\/code><\/pre>\n<p>\u6fc0\u6d3b\u6210\u529f\u540e\uff0c\u4f60\u7684\u7ec8\u7aef\u63d0\u793a\u7b26\u524d\u9762\u4f1a\u51fa\u73b0<code>(deepseek-ocr)<\/code>\u5b57\u6837\u3002<\/li>\n<\/ol>\n<h3><strong>\u7b2c\u4e8c\u6b65\uff1a\u5b89\u88c5\u4f9d\u8d56<\/strong><\/h3>\n<p>\u5728\u6fc0\u6d3b\u7684Conda\u73af\u5883\u4e2d\uff0c\u9700\u8981\u5b89\u88c5\u6a21\u578b\u8fd0\u884c\u6240\u9700\u7684Python\u5e93\u3002<\/p>\n<ol>\n<li><strong>\u5b89\u88c5PyTorch<\/strong><br \/>\n\u6839\u636e\u5b98\u65b9\u8981\u6c42\uff0c\u5b89\u88c5\u9002\u914dCUDA 11.8\u7684PyTorch\u7248\u672c\u3002<\/p>\n<pre><code>pip install torch==2.6.0 torchvision==0.21.0 torchaudio==2.6.0 --index-url https:\/\/download.pytorch.org\/whl\/cu118\r\n<\/code><\/pre>\n<\/li>\n<li><strong>\u5b89\u88c5\u5176\u4ed6\u6838\u5fc3\u4f9d\u8d56<\/strong><br \/>\n\u9879\u76ee\u4f9d\u8d56vLLM\u5e93\u8fdb\u884c\u9ad8\u6027\u80fd\u63a8\u7406\uff0c\u540c\u65f6\u9700\u8981\u5b89\u88c5<code>requirements.txt<\/code>\u6587\u4ef6\u4e2d\u5217\u51fa\u7684\u5176\u4ed6\u5305\u3002<\/p>\n<pre><code># \u8fdb\u5165\u9879\u76ee\u6587\u4ef6\u5939\r\ncd DeepSeek-OCR\r\n# \u5b89\u88c5vLLM\uff08\u6ce8\u610f\uff1a\u5b98\u65b9\u63d0\u4f9b\u4e86\u7f16\u8bd1\u597d\u7684whl\u6587\u4ef6\u94fe\u63a5\uff0c\u4e5f\u53ef\u4ee5\u81ea\u884c\u7f16\u8bd1\uff09\r\n# \u793a\u4f8b\u662f\u4e0b\u8f7d\u5b98\u65b9\u63d0\u4f9b\u7684whl\u6587\u4ef6\u8fdb\u884c\u5b89\u88c5\r\npip install vllm-0.8.5+cu118-cp38-abi3-manylinux1_x86_64.whl\r\n# \u5b89\u88c5requirements.txt\u4e2d\u7684\u6240\u6709\u4f9d\u8d56\r\npip install -r requirements.txt\r\n<\/code><\/pre>\n<\/li>\n<li><strong>\u5b89\u88c5Flash Attention\uff08\u53ef\u9009\u4f46\u63a8\u8350\uff09<\/strong><br \/>\n\u4e3a\u4e86\u83b7\u5f97\u6700\u4f73\u7684\u8fd0\u884c\u901f\u5ea6\uff0c\u63a8\u8350\u5b89\u88c5Flash Attention\u5e93\u3002<\/p>\n<pre><code>pip install flash-attn==2.7.3 --no-build-isolation\r\n<\/code><\/pre>\n<p><em>\u6ce8\u610f\uff1a<\/em>\u00a0\u5982\u679c\u4f60\u7684GPU\u4e0d\u652f\u6301\u6216\u5b89\u88c5\u5931\u8d25\uff0c\u4e5f\u53ef\u4ee5\u4e0d\u5b89\u88c5\u6b64\u5e93\u3002\u540e\u7eed\u5728\u4ee3\u7801\u4e2d\u9700\u8981\u79fb\u9664<code>_attn_implementation='flash_attention_2'<\/code>\u8fd9\u4e2a\u53c2\u6570\uff0c\u6a21\u578b\u867d\u7136\u53ef\u4ee5\u8fd0\u884c\uff0c\u4f46\u901f\u5ea6\u4f1a\u6162\u4e00\u4e9b\u3002<\/li>\n<\/ol>\n<h3><strong>\u7b2c\u4e09\u6b65\uff1a\u8fd0\u884c\u63a8\u7406\u4ee3\u7801<\/strong><\/h3>\n<p>DeepSeek-OCR\u63d0\u4f9b\u4e86\u4e24\u79cd\u4e3b\u6d41\u7684\u63a8\u7406\u65b9\u5f0f\uff1a\u57fa\u4e8e<code>Transformers<\/code>\u5e93\u7684\u5355\u6b21\u63a8\u7406\u548c\u57fa\u4e8e<code><a href=\"https:\/\/www.kdjingpai.com\/ja\/vllm\/\">vLLM<\/a><\/code>\u7684\u9ad8\u6027\u80fd\u6279\u91cf\u63a8\u7406\u3002<\/p>\n<h4><strong>\u65b9\u5f0f\u4e00\uff1a\u4f7f\u7528Transformers\u8fdb\u884c\u5feb\u901f\u63a8\u7406\uff08\u9002\u5408\u5355\u5f20\u56fe\u7247\u6d4b\u8bd5\uff09<\/strong><\/h4>\n<p>\u8fd9\u79cd\u65b9\u5f0f\u4ee3\u7801\u7b80\u5355\uff0c\u975e\u5e38\u9002\u5408\u5feb\u901f\u6d4b\u8bd5\u6a21\u578b\u6548\u679c\u3002<\/p>\n<ol>\n<li>\u521b\u5efa\u4e00\u4e2aPython\u6587\u4ef6\uff0c\u4f8b\u5982<code>test_ocr.py<\/code>\u3002<\/li>\n<li>\u5c06\u4ee5\u4e0b\u4ee3\u7801\u590d\u5236\u5230\u6587\u4ef6\u4e2d\u3002\u8fd9\u6bb5\u4ee3\u7801\u4f1a\u52a0\u8f7d\u6a21\u578b\uff0c\u5e76\u5bf9\u4e00\u5f20\u6307\u5b9a\u7684\u56fe\u7247\u8fdb\u884cOCR\u8bc6\u522b\u3002\n<pre><code>import torch\r\nfrom transformers import AutoModel, AutoTokenizer\r\nimport os\r\n# \u6307\u5b9a\u4f7f\u7528\u7684GPU\uff0c'0'\u4ee3\u8868\u7b2c\u4e00\u5f20\u5361\r\nos.environ[\"CUDA_VISIBLE_DEVICES\"] = '0'\r\n# \u6a21\u578b\u540d\u79f0\r\nmodel_name = 'deepseek-ai\/DeepSeek-OCR'\r\n# \u52a0\u8f7d\u5206\u8bcd\u5668\u548c\u6a21\u578b\r\ntokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)\r\n# \u52a0\u8f7d\u6a21\u578b\uff0c\u4f7f\u7528flash_attention_2\u52a0\u901f\uff0c\u5e76\u8bbe\u7f6e\u4e3a\u534a\u7cbe\u5ea6\uff08bfloat16\uff09\u4ee5\u8282\u7701\u663e\u5b58\r\nmodel = AutoModel.from_pretrained(\r\nmodel_name,\r\ntrust_remote_code=True,\r\n_attn_implementation='flash_attention_2',\r\nuse_safetensors=True\r\n).eval().cuda().to(torch.bfloat16)\r\n# \u5b9a\u4e49\u8f93\u5165\u7684\u56fe\u7247\u8def\u5f84\u548c\u8f93\u51fa\u8def\u5f84\r\nimage_file = 'your_image.jpg' # &lt;-- \u5c06\u8fd9\u91cc\u66ff\u6362\u6210\u4f60\u7684\u56fe\u7247\u8def\u5f84\r\noutput_path = 'your\/output\/dir' # &lt;-- \u5c06\u8fd9\u91cc\u66ff\u6362\u6210\u4f60\u7684\u8f93\u51fa\u6587\u4ef6\u5939\u8def\u5f84\r\n# \u5b9a\u4e49\u63d0\u793a\u8bcd\uff0c\u5f15\u5bfc\u6a21\u578b\u6267\u884c\u7279\u5b9a\u4efb\u52a1\r\n# \u8fd9\u4e2a\u63d0\u793a\u8bcd\u544a\u8bc9\u6a21\u578b\u5c06\u6587\u6863\u8f6c\u6362\u4e3aMarkdown\u683c\u5f0f\r\nprompt = \"&lt;image&gt;\\n&lt;|grounding|&gt;Convert the document to markdown. \"\r\n# \u6267\u884c\u63a8\u7406\r\nres = model.infer(\r\ntokenizer,\r\nprompt=prompt,\r\nimage_file=image_file,\r\noutput_path=output_path,\r\nbase_size=1024,\r\nimage_size=640,\r\ncrop_mode=True,\r\nsave_results=True,\r\ntest_compress=True\r\n)\r\nprint(res)\r\n<\/code><\/pre>\n<\/li>\n<li><strong>\u8fd0\u884c\u4ee3\u7801<\/strong><br \/>\n\u5c06\u4e00\u5f20\u9700\u8981\u8bc6\u522b\u7684\u56fe\u7247\uff08\u4f8b\u5982<code>your_image.jpg<\/code>\uff09\u653e\u5230\u4e0e\u811a\u672c\u76f8\u540c\u7684\u76ee\u5f55\u4e0b\uff0c\u7136\u540e\u6267\u884c\uff1a<\/p>\n<pre><code>python test_ocr.py\r\n<\/code><\/pre>\n<p>\u7a0b\u5e8f\u8fd0\u884c\u7ed3\u675f\u540e\uff0c\u8bc6\u522b\u51fa\u7684\u6587\u672c\u4f1a\u6253\u5370\u5728\u7ec8\u7aef\uff0c\u540c\u65f6\u7ed3\u679c\u4f1a\u4fdd\u5b58\u5728\u4f60\u6307\u5b9a\u7684\u8f93\u51fa\u8def\u5f84\u4e2d\u3002<\/li>\n<\/ol>\n<h4><strong>\u65b9\u5f0f\u4e8c\uff1a\u4f7f\u7528vLLM\u8fdb\u884c\u6279\u91cf\u63a8\u7406\uff08\u9002\u5408\u5904\u7406\u5927\u91cf\u56fe\u7247\u6216PDF\uff09<\/strong><\/h4>\n<p>vLLM\u6a21\u5f0f\u6027\u80fd\u66f4\u5f3a\uff0c\u9002\u5408\u751f\u4ea7\u73af\u5883\u3002<\/p>\n<ol>\n<li><strong>\u914d\u7f6e\u6587\u4ef6\u4fee\u6539<\/strong><br \/>\n\u8fdb\u5165<code>DeepSeek-OCR-master\/DeepSeek-OCR-vllm<\/code>\u76ee\u5f55\uff0c\u6253\u5f00<code>config.py<\/code>\u6587\u4ef6\uff0c\u4fee\u6539\u5176\u4e2d\u7684\u8f93\u5165\u8def\u5f84\uff08<code>INPUT_PATH<\/code>\uff09\u548c\u8f93\u51fa\u8def\u5f84\uff08<code>OUTPUT_PATH<\/code>\uff09\u7b49\u8bbe\u7f6e\u3002<\/li>\n<li><strong>\u6267\u884c\u811a\u672c<\/strong><br \/>\n\u8be5\u76ee\u5f55\u4e0b\u63d0\u4f9b\u4e86\u9488\u5bf9\u4e0d\u540c\u4efb\u52a1\u7684\u811a\u672c\uff1a<\/p>\n<ul>\n<li>\u5904\u7406\u6d41\u5f0f\u56fe\u7247\u6570\u636e\uff1a<code>python run_dpsk_ocr_image.py<\/code><\/li>\n<li>\u5904\u7406PDF\u6587\u4ef6\uff1a<code>python run_dpsk_ocr_pdf.py<\/code><\/li>\n<li>\u8fd0\u884c\u57fa\u51c6\u6d4b\u8bd5\uff1a<code>python run_dpsk_ocr_eval_batch.py<\/code><\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h2>\u5e94\u7528\u573a\u666f<\/h2>\n<ol>\n<li><strong>\u6587\u6863\u6570\u5b57\u5316<\/strong><br \/>\n\u5c06\u7eb8\u8d28\u4e66\u7c4d\u3001\u5408\u540c\u3001\u62a5\u544a\u7b49\u626b\u63cf\u6210\u56fe\u7247\u540e\uff0c\u4f7f\u7528DeepSeek-OCR\u53ef\u4ee5\u5feb\u901f\u5c06\u5176\u8f6c\u6362\u4e3a\u53ef\u7f16\u8f91\u3001\u53ef\u641c\u7d22\u7684\u7535\u5b50\u6587\u672c\uff0c\u5e76\u4e14\u80fd\u5f88\u597d\u5730\u4fdd\u7559\u539f\u59cb\u7684\u6807\u9898\u3001\u5217\u8868\u548c\u8868\u683c\u7ed3\u6784\u3002<\/li>\n<li><strong>\u4fe1\u606f\u63d0\u53d6<\/strong><br \/>\n\u4ece\u53d1\u7968\u3001\u6536\u636e\u3001\u8868\u5355\u7b49\u56fe\u7247\u4e2d\u81ea\u52a8\u63d0\u53d6\u5173\u952e\u4fe1\u606f\uff0c\u4f8b\u5982\u91d1\u989d\u3001\u65e5\u671f\u3001\u9879\u76ee\u540d\u79f0\u7b49\uff0c\u5b9e\u73b0\u81ea\u52a8\u5316\u6570\u636e\u5f55\u5165\uff0c\u51cf\u5c11\u4eba\u5de5\u64cd\u4f5c\u3002<\/li>\n<li><strong>\u6559\u80b2\u548c\u7814\u7a76<\/strong><br \/>\n\u7814\u7a76\u4eba\u5458\u53ef\u4ee5\u5229\u7528\u6b64\u5de5\u5177\u5feb\u901f\u8bc6\u522b\u548c\u8f6c\u6362\u8bba\u6587\u3001\u53e4\u7c4d\u3001\u6863\u6848\u7b49\u6587\u732e\u8d44\u6599\u4e2d\u7684\u6587\u672c\u5185\u5bb9\uff0c\u4fbf\u4e8e\u540e\u7eed\u8fdb\u884c\u6570\u636e\u5206\u6790\u548c\u5185\u5bb9\u68c0\u7d22\u3002<\/li>\n<li><strong>\u65e0\u969c\u788d\u5e94\u7528<\/strong><br \/>\n\u901a\u8fc7\u8bc6\u522b\u56fe\u7247\u4e2d\u7684\u6587\u5b57\u5e76\u751f\u6210\u8be6\u7ec6\u63cf\u8ff0\uff0c\u53ef\u4ee5\u5e2e\u52a9\u89c6\u529b\u969c\u788d\u7528\u6237\u7406\u89e3\u56fe\u50cf\u5185\u5bb9\uff0c\u4f8b\u5982\u8bfb\u53d6\u83dc\u5355\u3001\u8def\u724c\u6216\u4ea7\u54c1\u8bf4\u660e\u4e66\u3002<\/li>\n<\/ol>\n<h2>QA<\/h2>\n<ol>\n<li><strong>DeepSeek-OCR\u662f\u514d\u8d39\u7684\u5417\uff1f<\/strong><br \/>\n\u662f\u7684\uff0cDeepSeek-OCR\u662f\u4e00\u4e2a\u5f00\u6e90\u9879\u76ee\uff0c\u9075\u5faaMIT\u8bb8\u53ef\u8bc1\uff0c\u7528\u6237\u53ef\u4ee5\u514d\u8d39\u4f7f\u7528\u3001\u4fee\u6539\u548c\u5206\u53d1\u3002<\/li>\n<li><strong>\u5b83\u652f\u6301\u54ea\u4e9b\u8bed\u8a00\uff1f<\/strong><br \/>\n\u8be5\u6a21\u578b\u4e3b\u8981\u5c55\u793a\u4e86\u5176\u5728\u5904\u7406\u82f1\u6587\u548c\u4e2d\u6587\u6587\u6863\u4e0a\u7684\u5f3a\u5927\u80fd\u529b\u3002\u7531\u4e8e\u5176\u57fa\u4e8e\u5927\u8bed\u8a00\u6a21\u578b\uff0c\u7406\u8bba\u4e0a\u5177\u5907\u591a\u8bed\u8a00\u5904\u7406\u6f5c\u529b\uff0c\u4f46\u5177\u4f53\u6548\u679c\u9700\u8981\u6839\u636e\u5b9e\u9645\u6d4b\u8bd5\u6765\u8bc4\u4f30\u3002<\/li>\n<li><strong>\u5904\u7406PDF\u6587\u4ef6\u7684\u539f\u7406\u662f\u4ec0\u4e48\uff1f<\/strong><br \/>\nDeepSeek-OCR\u672c\u8eab\u5904\u7406\u7684\u662f\u56fe\u50cf\u3002\u5f53\u8f93\u5165PDF\u6587\u4ef6\u65f6\uff0c\u7a0b\u5e8f\u4f1a\u5148\u5c06PDF\u7684\u6bcf\u4e00\u9875\u6e32\u67d3\uff08\u8f6c\u6362\uff09\u6210\u4e00\u5f20\u56fe\u7247\uff0c\u7136\u540e\u9010\u9875\u5bf9\u8fd9\u4e9b\u56fe\u7247\u8fdb\u884cOCR\u8bc6\u522b\uff0c\u6700\u540e\u5c06\u6240\u6709\u9875\u9762\u7684\u7ed3\u679c\u5408\u5e76\u8f93\u51fa\u3002<\/li>\n<li><strong>\u6ca1\u6709NVIDIA\u7684GPU\u53ef\u4ee5\u4f7f\u7528\u5417\uff1f<\/strong><br \/>\n\u5b98\u65b9\u6587\u6863\u548c\u6559\u7a0b\u90fd\u57fa\u4e8eNVIDIA GPU\u548cCUDA\u73af\u5883\u3002 \u867d\u7136\u7406\u8bba\u4e0a\u6a21\u578b\u53ef\u4ee5\u5728CPU\u4e0a\u8fd0\u884c\uff0c\u4f46\u901f\u5ea6\u4f1a\u975e\u5e38\u6162\uff0c\u4e0d\u9002\u5408\u5b9e\u9645\u5e94\u7528\u3002\u56e0\u6b64\uff0c\u5f3a\u70c8\u5efa\u8bae\u5728\u914d\u5907NVIDIA GPU\u7684\u8bbe\u5907\u4e0a\u4f7f\u7528\u3002<\/li>\n<li><strong>\u201c\u4e0a\u4e0b\u6587\u5149\u5b66\u538b\u7f29\u201d\u6709\u4ec0\u4e48\u597d\u5904\uff1f<\/strong><br \/>\n\u4e3b\u8981\u597d\u5904\u662f\u6548\u7387\u3002\u4f20\u7edf\u6a21\u578b\u5904\u7406\u957f\u6587\u672c\u65f6\uff0c\u8ba1\u7b97\u91cf\u548c\u5185\u5b58\u5360\u7528\u4f1a\u968f\u7740\u6587\u672c\u957f\u5ea6\u6025\u5267\u589e\u52a0\u3002\u901a\u8fc7\u5c06\u6587\u672c\u56fe\u50cf\u538b\u7f29\u6210\u5c11\u91cf\u89c6\u89c9\u4ee4\u724c\uff0cDeepSeek-OCR\u53ef\u4ee5\u7528\u66f4\u5c11\u7684\u8d44\u6e90\u5904\u7406\u540c\u6837\u751a\u81f3\u66f4\u957f\u7684\u5185\u5bb9\uff0c\u4f7f\u5f97\u5728\u6709\u9650\u7684\u786c\u4ef6\u4e0a\u5904\u7406\u5927\u89c4\u6a21\u6587\u6863\u6210\u4e3a\u53ef\u80fd\u3002<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>DeepSeek-OCR \u662f\u7531\u6df1\u5ea6\u6c42\u7d22\uff08DeepSeek-AI\uff09\u516c\u53f8\u5f00\u53d1\u5e76\u5f00\u6e90\u7684\u4e00\u6b3e\u5149\u5b66\u5b57\u7b26\u8bc6\u522b\uff08OCR\uff09\u5de5\u5177\u3002 \u5b83\u63d0\u51fa\u4e86\u4e00\u4e2a\u540d\u4e3a\u201c\u4e0a\u4e0b\u6587\u5149\u5b66\u538b\u7f29\u201d\u7684\u65b0\u65b9\u6cd5\uff0c\u4ece\u5927\u8bed\u8a00\u6a21\u578b\uff08LLM\uff09\u7684\u89d2\u5ea6\u6765\u91cd\u65b0\u770b\u5f85\u89c6\u89c9\u7f16\u7801\u5668\u7684\u89d2\u8272\u3002 \u8fd9\u4e2a\u5de5\u5177\u4e0d\u662f\u7b80\u5355\u5730\u8bc6\u522b\u56fe&#8230;<\/p>\n","protected":false},"author":1,"featured_media":32782,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20,392],"tags":[230,248],"class_list":["post-60123","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tool","category-models","tag-aikaiyuanxiangmu","tag-ocr"],"_links":{"self":[{"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/posts\/60123","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/comments?post=60123"}],"version-history":[{"count":0,"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/posts\/60123\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/media\/32782"}],"wp:attachment":[{"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/media?parent=60123"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/categories?post=60123"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/tags?post=60123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}