Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
MinerU
Commits
efed5faa
Commit
efed5faa
authored
Mar 23, 2024
by
许瑞
Browse files
feat: modify foot note bbox tmp
parent
05161c6e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
magic_pdf/train_utils/convert_to_train_format.py
magic_pdf/train_utils/convert_to_train_format.py
+2
-2
No files found.
magic_pdf/train_utils/convert_to_train_format.py
View file @
efed5faa
...
@@ -54,8 +54,8 @@ def convert_to_train_format(jso: dict) -> []:
...
@@ -54,8 +54,8 @@ def convert_to_train_format(jso: dict) -> []:
n_bbox
=
{
"category_id"
:
10
,
"bbox"
:
inter_equation
[
"bbox"
]}
n_bbox
=
{
"category_id"
:
10
,
"bbox"
:
inter_equation
[
"bbox"
]}
bboxes
.
append
(
n_bbox
)
bboxes
.
append
(
n_bbox
)
for
footnote
in
v
[
'
bak_footer_note_bboxes
'
]:
for
footnote
_bbox
in
v
[
"
bak_footer_note_bboxes
"
]:
n_bbox
=
{
"category_id"
:
5
,
"bbox"
:
footnote
[
"
bbox
"
]
}
n_bbox
=
{
"category_id"
:
5
,
"bbox"
:
list
(
footnote
_
bbox
)
}
bboxes
.
append
(
n_bbox
)
bboxes
.
append
(
n_bbox
)
info
[
"bboxes"
]
=
bboxes
info
[
"bboxes"
]
=
bboxes
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment