专属
文档
插件
助手
邀请
顶部
快速返回页面顶部
收起
收起工具栏
轩辕镜像 官方专业版
轩辕镜像
专业版
轩辕镜像 官方专业版
轩辕镜像
专业版
首页个人中心搜索镜像

交易
充值流量我的订单

文档

工具

功能
提交工单页面收录

帮助
轩辕镜像免费版

其他
关于我们网站地图
热门搜索:
ghcr.io/byaidu/pdfmathtranslate

ghcr.io/byaidu/pdfmathtranslate:dev

ghcr.iolinux/amd64dev大小: 未知更新于 2026年6月6日
让 AI 帮你使用轩辕镜像? · 展开查看说明

如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。

只需在 AI 对话中先发送下面这句话即可:

请先完整阅读并严格遵守以下文档中的全部规则与要求:

https://xuanyuan.cloud/agents.md

在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。

查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。

特别感谢:

Warp,为多AI代理编码而构建,支持macOS、Linux和Windows

英文 | 简体中文 | 繁體中文 | 日本語 | 한국어

PDFMathTranslate

  1. 功能介绍

保留布局的科学PDF文档翻译。

  • 📊 保留公式、图表、目录和注释。
  • 🌐 支持多种语言和多样化翻译服务。
  • 🤖 提供命令行工具、交互式用户界面和Docker部署方式。
  1. 最近更新
  • [2026年3月23日] 实验性支持v2.0翻译内核,采用隔离环境(--mode precise)。(贡献者:https://github.com/reycn%EF%BC%89
  • [2026年3月22日] 支持MiniMax(PR贡献者:https://github.com/octo-patch%EF%BC%89
  • [2026年3月22日] 修复OpenAI相关问题(PR贡献者:https://github.com/samqin123%EF%BC%89
  • [2026年3月22日] 修复HTTP相关问题(PR贡献者:https://github.com/soukouki%EF%BC%89
  • [2026年3月22日] 优化mac和OONX平台的模型加载速度、GUI启动速度、版本打印功能及持续集成。(贡献者:https://github.com/reycn%EF%BC%89
  • [2025年5月9日] pdf2zh 2.0预览版 https://github.com/Byaidu/PDFMathTranslate/issues/586%EF%BC%9AWindows ZIP文件和Docker镜像现已可用。

[!NOTE]

2.0版本已迁移至组织下的新仓库:https://github.com/PDFMathTranslate/PDFMathTranslate-next

2.0正式版已发布。

  1. 使用方法 🌟 3.1 在线服务 🌟

您可以通过以下任一演示体验本应用:

  • 公共免费服务:在线使用,无需安装 (推荐)。
  • Immersive Translate - BabelDOC:提供免费使用额度,详情请参考页面FAQ部分 (推荐)。
  • HuggingFace托管演示
  • ModelScope托管演示:无需安装。

注意:演示的计算资源有限,请避免滥用。

3.2 本地安装

针对不同使用场景,我们提供多种本地使用方式:

3.2.1 Python:使用uv安装

  1. 已安装Python(3.11

3.2.2 Python:使用pip安装

  1. 已安装Python(3.11

3.3.3 Python:图形用户界面

  1. 已安装Python(3.11

更多详情请参见GUI文档。

3.2.4 应用程序:Windows系统

  1. 从https://github.com/Byaidu/PDFMathTranslate/releases%E4%B8%8B%E8%BD%BDpdf2zh-version-win64.zip

  2. 解压并双击pdf2zh.exe运行。

[!NOTE]

  • 如果在Windows系统中下载后无法打开文件,请安装vc_redist.x64.exe后重试。

3.2.5 参考文献管理工具:Zotero插件

详情请参见https://github.com/guaguastandup/zotero-pdf2zh%E3%80%82

3.2.6 Docker:容器化部署

  1. 拉取并运行镜像:
docker pull byaidu/pdf2zh
docker run -d -p 7860:7860 byaidu/pdf2zh
  1. 在浏览器中打开:

云服务Docker部署说明:

[!NOTE]

  • 如果无法访问Docker Hub,请尝试https://github.com/Byaidu/PDFMathTranslate/pkgs/container/pdfmathtranslate%E4%B8%8A%E7%9A%84%E9%95%9C%E5%83%8F%EF%BC%9A
> docker pull ghcr.io/byaidu/pdfmathtranslate
> docker run -d -p 7860:7860 ghcr.io/byaidu/pdfmathtranslate
>

3.2.* 安装时网络问题的解决方案

特定地区用户在加载AI模型时可能遇到网络困难。当前程序依赖AI模型(wybxc/DocLayout-YOLO-DocStructBench-onnx),部分用户因网络问题无法下载该模型。

若遇到模型下载问题,可通过以下环境变量解决:

set HF_ENDPOINT=https://hf-mirror.com

PowerShell用户:

$env:HF_ENDPOINT = https://hf-mirror.com

如果上述解决方案无效或遇到其他问题,请参考https://github.com/Byaidu/PDFMathTranslate/wiki#-faq--%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98%E3%80%82

  1. 技术细节

4.1 高级选项

在命令行执行翻译命令,将在当前工作目录生成翻译文档example-mono.pdf和双语文档example-dual.pdf。默认使用Google翻译服务。更多支持的翻译服务请参见https://github.com/Byaidu/PDFMathTranslate/blob/main/docs/ADVANCED.md#services%E3%80%82

下表列出所有高级选项供参考:

选项功能示例
files本地文件pdf2zh ~/local.pdf
links在线文件pdf2zh http://arxiv.org/paper.pdf
-i进入GUIpdf2zh -i
-phttps://github.com/Byaidu/PDFMathTranslate/blob/main/docs/ADVANCED.md#partialpdf2zh example.pdf -p 1
-lihttps://github.com/Byaidu/PDFMathTranslate/blob/main/docs/ADVANCED.md#languagespdf2zh example.pdf -li en
-lohttps://github.com/Byaidu/PDFMathTranslate/blob/main/docs/ADVANCED.md#languagespdf2zh example.pdf -lo zh
-shttps://github.com/Byaidu/PDFMathTranslate/blob/main/docs/ADVANCED.md#servicespdf2zh example.pdf -s deepl
-thttps://github.com/Byaidu/PDFMathTranslate/blob/main/docs/ADVANCED.md#threadspdf2zh example.pdf -t 1
-o输出目录pdf2zh example.pdf -o output
-f, -chttps://github.com/Byaidu/PDFMathTranslate/blob/main/docs/ADVANCED.md#exceptionspdf2zh example.pdf -f "(MS.*)"
-cp兼容模式pdf2zh example.pdf --compatible
--skip-subset-fontshttps://github.com/Byaidu/PDFMathTranslate/blob/main/docs/ADVANCED.md#font-subsetpdf2zh example.pdf --skip-subset-fonts
--ignore-cachehttps://github.com/Byaidu/PDFMathTranslate/blob/main/docs/ADVANCED.md#cachepdf2zh example.pdf --ignore-cache
--share公共链接pdf2zh -i --share
--authorizedhttps://github.com/Byaidu/PDFMathTranslate/blob/main/docs/ADVANCED.md#authpdf2zh -i --authorized users.txt [auth.html]
--prompthttps://github.com/Byaidu/PDFMathTranslate/blob/main/docs/ADVANCED.md#promptpdf2zh --prompt [prompt.txt]
--onnx[使用自定义DocLayout-YOLO ONNX模型]pdf2zh --onnx [onnx/model/path]
--serverport[自定义WebUI端口]pdf2zh --serverport 7860
--dir[批量翻译]pdf2zh --dir /path/to/translate/
--confighttps://github.com/Byaidu/PDFMathTranslate/blob/main/docs/ADVANCED.md#cofigpdf2zh --config /path/to/config/config.json
--serverport[自定义Gradio服务器端口]pdf2zh --serverport 7860
--mode翻译模式:fast(默认,v1)或precise(v2,实验性,需pdf2zh_next子模块)pdf2zh --mode precise example.pdf
--babeldoc使用实验性后端https://funstory-ai.github.io/BabelDOC/%E8%BF%9B%E8%A1%8C%E7%BF%BB%E8%AF%91pdf2zh --babeldoc -s openai example.pdf
--mcp启用MCP标准输入输出模式pdf2zh --mcp
--sse启用MCP SSE模式pdf2zh --mcp --sse

详细说明请参考高级用法文档。

4.2 下游开发 下游应用开发请参考API详情文档,包含以下内容:

  • Python API:如何在其他Python程序中使用本程序
  • HTTP API:如何与安装本程序的服务器通信

4.3 两个主要分支的区别

  • https://github.com/Byaidu/PDFMathTranslate%EF%BC%9A%E5%BD%93%E5%89%8D%E9%A1%B9%E7%9B%AE%EF%BC%8C%E5%8E%9F%E5%A7%8B%E9%A1%B9%E7%9B%AE%EF%BC%8C%E7%94%A8%E4%BA%8E%E7%A8%B3%E5%AE%9A%E7%89%88%E6%9C%AC%E5%8F%91%E5%B8%83%E3%80%82

  • https://github.com/PDFMathTranslate/PDFMathTranslate-next%EF%BC%9A%E5%8C%85%E5%90%ABWeb UI和额外功能的分支。该分支处理大量边缘情况,提升PDF兼容性,优化跨列和跨页语义一致性、动态缩放及动态缩放一致性等翻译质量改进。但该分支仅用于开发,不解决兼容性问题,也不面向社区贡献。

  1. 项目信息 5.1 引用

本工作已被《2025年自然语言处理经验方法会议论文集:系统演示》(EMNLP 2025)收录。

引用格式:

@inproceedings{ouyang-etal-2025-pdfmathtranslate,
title = "{PDFM}ath{T}ranslate: Scientific Document Translation Preserving Layouts",
author = "Ouyang, Rongxin and
Chu, Chang and
Xin, Zhikuang and
Ma, Xiangyao",
editor = {Habernal, Ivan and
Schulam, Peter and
Tiedemann, J{\"o}rg},
booktitle = "Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing: System Demonstrations",
month = nov,
year = "2025",
address = "Suzhou, China",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2025.emnlp-demos.71/",
pages = "918--924",
ISBN = "979-8-89176-334-0",
abstract = "Language barriers in scientific documents hinder the diffusion and development of science and technologies. However, prior efforts in translating such documents largely overlooked the information in layouts. To bridge the gap, we introduce PDFMathTranslate, the world{'}s first open-source software for translating scientific documents while preserving layouts. Leveraging the most recent advances in large language models and precise layout detection, we contribute to the community with key improvements in precision, flexibility, and efficiency. The work is open-sourced at https://github.com/byaidu/pdfmathtranslate with more than 222k downloads."
}

5.2 致谢

  • Immersive Translation每月为该项目的活跃贡献者提供Pro会员兑换码,详情参见:https://github.com/funstory-ai/BabelDOC/blob/main/docs/CONTRIBUTOR_REWARD.md

  • 新后端:https://github.com/funstory-ai/BabelDOC

  • 文档合并:https://github.com/pymupdf/PyMuPDF

  • 文档解析:https://github.com/pdfminer/pdfminer.six

  • 文档提取:https://github.com/opendatalab/MinerU

  • 文档预览:https://github.com/freddyaboulton/gradio-pdf

  • 多线程翻译:https://github.com/SUSYUSTC/MathTranslate

  • 布局解析:https://github.com/opendatalab/DocLayout-YOLO

  • 文档标准:https://zxyle.github.io/PDF-Explained/%E3%80%81PDF Cheat Sheets

  • 多语言字体:https://github.com/satbyy/go-noto-universal

5.3 贡献者

贡献方法详情请参考https://github.com/Byaidu/PDFMathTranslate/wiki/Contribution-Guide---%E8%B4%A1%E7%8C%AE%E6%8C%87%E5%8D%97%E3%80%82

5.4 星标历史

轩辕镜像配置手册

按平台快速找到配置文档

Docker

登录仓库拉取

登录认证 · 私有仓库

专属域名拉取

免登录 · 高速拉取

Linux

Docker 镜像配置

Windows / Mac

Docker Desktop 配置

MacOS OrbStack

OrbStack 容器

Docker Compose

Compose 项目配置

NAS

群晖

Synology 配置

飞牛

fnOS 镜像配置

绿联

绿联 NAS

威联通

QNAP 配置

极空间

极空间 NAS

企业仓库

其他仓库

ghcr · Quay · nvcr

Harbor 镜像源

Proxy Repository 对接

Portainer 镜像源

Registries 配置

Nexus 镜像源

Docker Proxy 缓存

开发工具

Dev Containers

VS Code 开发容器

Podman

Podman 配置指南

Singularity / Apptainer

HPC 科学计算容器

Kubernetes

K8s Containerd

Kubernetes · Containerd

K3s

轻量级集群

面板 / 网络

爱快路由

iKuai 镜像加速

宝塔面板

一键配置镜像源

AI

用 AI 使用轩辕镜像

agents.md · AI 对话 · 提示词

一键安装

一键安装 Docker

Linux Docker 一键安装

需要其他帮助?请查看我们的 常见问题 Docker 镜像访问常见问题解答 或 提交工单

镜像拉取常见问题

功能

免费版与专业版区别

功能对比 · 版本选择

支持的镜像仓库

Docker Hub · GCR · GHCR

新手拉取配置

登录 · 专属域名 · 配置

docker search 限制

专属域名 · Hub 搜索

不支持 push

仅支持 pull · 不支持

拉取速度原因

带宽 · 缓存 · 冷热镜像

错误码

402 与流量用尽

402 · 流量包 · 充值

401 认证失败

401 · docker login

manifest unknown

标签错误 · 镜像不存在

410 Gone 排查

410 · Docker 升级

429 限流

免费版 · 请求频率

其他报错

DNS 超时

DNS 解析 · 网络超时

TLS 证书失败

no matching manifest(架构)

账号

失败是否计费

manifest · blob · 计费

申请开发票(企业 / 个人)

企业 · 个人 · 工单

修改登录密码

网站 · 仓库 · 重置

注销账户

工单 · 数据 · 注销

原理

mirrors 不生效

daemon.json · 重启

去掉域名前缀

docker tag · 重命名

指定架构拉取

ARM64 · AMD64 · 多架构

latest 与「最新」

digest · 版本号 · 标签

查看全部问题→

用户好评

来自真实用户的反馈,见证轩辕镜像的优质服务

用户头像

oldzhang

运维工程师

Linux服务器

5

"Docker访问体验非常流畅,大镜像也能快速完成下载。"

轩辕镜像
镜像详情
...
ghcr.io/byaidu/pdfmathtranslate
教程轩辕镜像功能与使用教程
价格查看流量套餐与价格
热门查看热门 Docker 镜像推荐
博客Docker 镜像公告与技术博客
官方公众号:源码跳动|官方技术交流群:51517718
官方公众号:源码跳动|官方技术交流群:|问题咨询请:提交工单
商务合作:点击复制邮箱
©2024-2026 源码跳动
商务合作:点击复制邮箱Copyright © 2024-2026 杭州源码跳动科技有限公司. All rights reserved.