Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

图片描述和图片并排时图片描述丢失的问题。 #610

Closed
L9qmzn opened this issue Sep 12, 2024 · 2 comments
Closed

图片描述和图片并排时图片描述丢失的问题。 #610

L9qmzn opened this issue Sep 12, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@L9qmzn
Copy link

L9qmzn commented Sep 12, 2024

Description of the bug | 错误描述

下载 (1)

How to reproduce the bug | 如何复现

2405.07987v1_3.pdf

上面是测试使用的pdf文件。

在魔搭的demo中和本地部署中,都遇到了这个问题。

Operating system | 操作系统

Linux

Python version | Python 版本

3.12

Software version | 软件版本 (magic-pdf --version)

0.7.x

Device mode | 设备模式

cuda

@L9qmzn L9qmzn added the bug Something isn't working label Sep 12, 2024
@myhloli
Copy link
Collaborator

myhloli commented Sep 12, 2024

这张图存在下方和右侧两个caption,在预处理过程中有一步是将图片和对应的caption合并到同一个block中,在这个例子中一张图在两个方向有两个caption,算法会将最近的那个caption与图片合并。
目前我们为了不影响上下文语义的连贯性,不能简单的将无主的caption当做普通文本块合并到文档中,对于这种一图多caption的案例需要内部讨论下如何保留。

@myhloli
Copy link
Collaborator

myhloli commented Oct 25, 2024

已修复
#785

image

@myhloli myhloli closed this as completed Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants