Skip to content

Commit 49560f3

Browse files
committed
Bump marker version to 1.2.0
1 parent bfdd1d0 commit 49560f3

File tree

14 files changed

+109
-37
lines changed

14 files changed

+109
-37
lines changed

.github/workflows/docker-image-tag-version.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ on:
1313
marker_version:
1414
description: marker version of pypi
1515
required: true
16-
default: 1.1.0
16+
default: 1.2.0
1717
streamlit_version:
1818
description: streamlit version of pypi
1919
required: true
20-
default: 1.41.0
20+
default: 1.41.1
2121

2222
jobs:
2323
build-and-push-docker-image:
@@ -29,9 +29,9 @@ jobs:
2929
strategy:
3030
matrix:
3131
MARKER_VERSION:
32-
- ${{ github.event.inputs.marker_version || '1.1.0' }}
32+
- ${{ github.event.inputs.marker_version || '1.2.0' }}
3333
STREAMLIT_VERSION:
34-
- ${{ github.event.inputs.streamlit_version || '1.41.0' }}
34+
- ${{ github.event.inputs.streamlit_version || '1.41.1' }}
3535
platform:
3636
- linux/amd64
3737

.vscode/launch.json

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@
3535
"XDG_CACHE_HOME": "${workspaceFolder}/cache",
3636
"HF_HUB_OFFLINE": "true",
3737
"DETECTOR_MODEL_CHECKPOINT": "${workspaceFolder}/cache/huggingface/hub/models--vikp--surya_det3/snapshots/467ee9ec33e6e6c5f73e57dbc1415b14032f5b95",
38-
"LAYOUT_MODEL_CHECKPOINT": "${workspaceFolder}/cache/huggingface/hub/models--datalab-to--surya_layout0/snapshots/421ac206a400227ea714d47a405e53ce74374957",
3938
"RECOGNITION_MODEL_CHECKPOINT": "${workspaceFolder}/cache/huggingface/hub/models--vikp--surya_rec2/snapshots/6611509b2c3a32c141703ce19adc899d9d0abf41",
39+
"LAYOUT_MODEL_CHECKPOINT": "${workspaceFolder}/cache/huggingface/hub/models--datalab-to--surya_layout/snapshots/7ac8e390226ee5fa2125dd303d827f79d31d1a1f",
40+
"OCR_ERROR_MODEL_CHECKPOINT": "${workspaceFolder}/cache/huggingface/hub/models--datalab-to--ocr_error_detection/snapshots/c1cbda3757670fd520553eaa5197656d331de414",
4041
"TABLE_REC_MODEL_CHECKPOINT": "${workspaceFolder}/cache/huggingface/hub/models--vikp--surya_tablerec/snapshots/8bca165f81e9cee5fb382413eb23175079917d14",
4142
"TEXIFY_MODEL_NAME": "${workspaceFolder}/cache/huggingface/hub/models--vikp--texify/snapshots/ce49c1fe10842e78b8be61f9e762b85ac952807d"
4243
},
@@ -74,8 +75,9 @@
7475
"XDG_CACHE_HOME": "${workspaceFolder}/cache",
7576
"HF_HUB_OFFLINE": "true",
7677
"DETECTOR_MODEL_CHECKPOINT": "${workspaceFolder}/cache/huggingface/hub/models--vikp--surya_det3/snapshots/467ee9ec33e6e6c5f73e57dbc1415b14032f5b95",
77-
"LAYOUT_MODEL_CHECKPOINT": "${workspaceFolder}/cache/huggingface/hub/models--datalab-to--surya_layout0/snapshots/421ac206a400227ea714d47a405e53ce74374957",
7878
"RECOGNITION_MODEL_CHECKPOINT": "${workspaceFolder}/cache/huggingface/hub/models--vikp--surya_rec2/snapshots/6611509b2c3a32c141703ce19adc899d9d0abf41",
79+
"LAYOUT_MODEL_CHECKPOINT": "${workspaceFolder}/cache/huggingface/hub/models--datalab-to--surya_layout/snapshots/7ac8e390226ee5fa2125dd303d827f79d31d1a1f",
80+
"OCR_ERROR_MODEL_CHECKPOINT": "${workspaceFolder}/cache/huggingface/hub/models--datalab-to--ocr_error_detection/snapshots/c1cbda3757670fd520553eaa5197656d331de414",
7981
"TABLE_REC_MODEL_CHECKPOINT": "${workspaceFolder}/cache/huggingface/hub/models--vikp--surya_tablerec/snapshots/8bca165f81e9cee5fb382413eb23175079917d14",
8082
"TEXIFY_MODEL_NAME": "${workspaceFolder}/cache/huggingface/hub/models--vikp--texify/snapshots/ce49c1fe10842e78b8be61f9e762b85ac952807d"
8183
},
@@ -107,8 +109,9 @@
107109
"XDG_CACHE_HOME": "${workspaceFolder}/cache",
108110
"HF_HUB_OFFLINE": "true",
109111
"DETECTOR_MODEL_CHECKPOINT": "${workspaceFolder}/cache/huggingface/hub/models--vikp--surya_det3/snapshots/467ee9ec33e6e6c5f73e57dbc1415b14032f5b95",
110-
"LAYOUT_MODEL_CHECKPOINT": "${workspaceFolder}/cache/huggingface/hub/models--datalab-to--surya_layout0/snapshots/421ac206a400227ea714d47a405e53ce74374957",
111112
"RECOGNITION_MODEL_CHECKPOINT": "${workspaceFolder}/cache/huggingface/hub/models--vikp--surya_rec2/snapshots/6611509b2c3a32c141703ce19adc899d9d0abf41",
113+
"LAYOUT_MODEL_CHECKPOINT": "${workspaceFolder}/cache/huggingface/hub/models--datalab-to--surya_layout/snapshots/7ac8e390226ee5fa2125dd303d827f79d31d1a1f",
114+
"OCR_ERROR_MODEL_CHECKPOINT": "${workspaceFolder}/cache/huggingface/hub/models--datalab-to--ocr_error_detection/snapshots/c1cbda3757670fd520553eaa5197656d331de414",
112115
"TEXIFY_MODEL_NAME": "${workspaceFolder}/cache/huggingface/hub/models--vikp--texify/snapshots/ce49c1fe10842e78b8be61f9e762b85ac952807d",
113116
"TABLE_REC_MODEL_CHECKPOINT": "${workspaceFolder}/cache/huggingface/hub/models--vikp--surya_tablerec/snapshots/8bca165f81e9cee5fb382413eb23175079917d14",
114117
},
@@ -146,8 +149,9 @@
146149
"XDG_CACHE_HOME": "${workspaceFolder}/cache",
147150
"HF_HUB_OFFLINE": "true",
148151
"DETECTOR_MODEL_CHECKPOINT": "${workspaceFolder}/cache/huggingface/hub/models--vikp--surya_det3/snapshots/467ee9ec33e6e6c5f73e57dbc1415b14032f5b95",
149-
"LAYOUT_MODEL_CHECKPOINT": "${workspaceFolder}/cache/huggingface/hub/models--datalab-to--surya_layout0/snapshots/421ac206a400227ea714d47a405e53ce74374957",
150152
"RECOGNITION_MODEL_CHECKPOINT": "${workspaceFolder}/cache/huggingface/hub/models--vikp--surya_rec2/snapshots/6611509b2c3a32c141703ce19adc899d9d0abf41",
153+
"LAYOUT_MODEL_CHECKPOINT": "${workspaceFolder}/cache/huggingface/hub/models--datalab-to--surya_layout/snapshots/7ac8e390226ee5fa2125dd303d827f79d31d1a1f",
154+
"OCR_ERROR_MODEL_CHECKPOINT": "${workspaceFolder}/cache/huggingface/hub/models--datalab-to--ocr_error_detection/snapshots/c1cbda3757670fd520553eaa5197656d331de414",
151155
"TEXIFY_MODEL_NAME": "${workspaceFolder}/cache/huggingface/hub/models--vikp--texify/snapshots/ce49c1fe10842e78b8be61f9e762b85ac952807d",
152156
"TABLE_REC_MODEL_CHECKPOINT": "${workspaceFolder}/cache/huggingface/hub/models--vikp--surya_tablerec/snapshots/8bca165f81e9cee5fb382413eb23175079917d14",
153157
},
@@ -187,8 +191,9 @@
187191
"XDG_CACHE_HOME": "${workspaceFolder}/cache",
188192
"HF_HUB_OFFLINE": "true",
189193
"DETECTOR_MODEL_CHECKPOINT": "${workspaceFolder}/cache/huggingface/hub/models--vikp--surya_det3/snapshots/467ee9ec33e6e6c5f73e57dbc1415b14032f5b95",
190-
"LAYOUT_MODEL_CHECKPOINT": "${workspaceFolder}/cache/huggingface/hub/models--datalab-to--surya_layout0/snapshots/421ac206a400227ea714d47a405e53ce74374957",
191194
"RECOGNITION_MODEL_CHECKPOINT": "${workspaceFolder}/cache/huggingface/hub/models--vikp--surya_rec2/snapshots/6611509b2c3a32c141703ce19adc899d9d0abf41",
195+
"LAYOUT_MODEL_CHECKPOINT": "${workspaceFolder}/cache/huggingface/hub/models--datalab-to--surya_layout/snapshots/7ac8e390226ee5fa2125dd303d827f79d31d1a1f",
196+
"OCR_ERROR_MODEL_CHECKPOINT": "${workspaceFolder}/cache/huggingface/hub/models--datalab-to--ocr_error_detection/snapshots/c1cbda3757670fd520553eaa5197656d331de414",
192197
"TEXIFY_MODEL_NAME": "${workspaceFolder}/cache/huggingface/hub/models--vikp--texify/snapshots/ce49c1fe10842e78b8be61f9e762b85ac952807d",
193198
"TABLE_REC_MODEL_CHECKPOINT": "${workspaceFolder}/cache/huggingface/hub/models--vikp--surya_tablerec/snapshots/8bca165f81e9cee5fb382413eb23175079917d14",
194199
},
@@ -229,8 +234,9 @@
229234
"XDG_CACHE_HOME": "${workspaceFolder}/cache",
230235
"HF_HUB_OFFLINE": "true",
231236
"DETECTOR_MODEL_CHECKPOINT": "${workspaceFolder}/cache/huggingface/hub/models--vikp--surya_det3/snapshots/467ee9ec33e6e6c5f73e57dbc1415b14032f5b95",
232-
"LAYOUT_MODEL_CHECKPOINT": "${workspaceFolder}/cache/huggingface/hub/models--datalab-to--surya_layout0/snapshots/421ac206a400227ea714d47a405e53ce74374957",
233237
"RECOGNITION_MODEL_CHECKPOINT": "${workspaceFolder}/cache/huggingface/hub/models--vikp--surya_rec2/snapshots/6611509b2c3a32c141703ce19adc899d9d0abf41",
238+
"LAYOUT_MODEL_CHECKPOINT": "${workspaceFolder}/cache/huggingface/hub/models--datalab-to--surya_layout/snapshots/7ac8e390226ee5fa2125dd303d827f79d31d1a1f",
239+
"OCR_ERROR_MODEL_CHECKPOINT": "${workspaceFolder}/cache/huggingface/hub/models--datalab-to--ocr_error_detection/snapshots/c1cbda3757670fd520553eaa5197656d331de414",
234240
"TEXIFY_MODEL_NAME": "${workspaceFolder}/cache/huggingface/hub/models--vikp--texify/snapshots/ce49c1fe10842e78b8be61f9e762b85ac952807d",
235241
"TABLE_REC_MODEL_CHECKPOINT": "${workspaceFolder}/cache/huggingface/hub/models--vikp--surya_tablerec/snapshots/8bca165f81e9cee5fb382413eb23175079917d14",
236242
"METADATA_FILE": "../pdf_meta.json",

.vscode/tasks.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525
"command": "docker build -t xiaoyao9184/marker:master -f ./docker/build@source/dockerfile ."
2626
},
2727
{
28-
"label": "docker: build 1.1.0",
28+
"label": "docker: build 1.2.0",
2929
"type": "shell",
30-
"command": "docker build -t xiaoyao9184/marker:1.1.0 -f ./docker/build@pypi/dockerfile ."
30+
"command": "docker build -t xiaoyao9184/marker:1.2.0 -f ./docker/build@pypi/dockerfile ."
3131
},
3232
{
3333
"label": "huggingface-cli: download models",
@@ -45,7 +45,8 @@
4545
"&& huggingface-cli download vikp/surya_rec2 --revision main --cache-dir ./cache/huggingface/hub",
4646
"&& huggingface-cli download vikp/surya_tablerec --revision main --cache-dir ./cache/huggingface/hub",
4747
"&& huggingface-cli download vikp/texify --revision main --cache-dir ./cache/huggingface/hub",
48-
"&& huggingface-cli download datalab-to/surya_layout0 --revision main --cache-dir ./cache/huggingface/hub",
48+
"&& huggingface-cli download datalab-to/surya_layout --revision main --cache-dir ./cache/huggingface/hub",
49+
"&& huggingface-cli download datalab-to/ocr_error_detection --revision main --cache-dir ./cache/huggingface/hub",
4950
]
5051
},
5152
{

cache/README.md

Lines changed: 56 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,58 @@ and `./cache/huggingface/hub/models--vikp--surya_tablerec` like this
9494
4 directories, 19 files
9595
```
9696

97+
and `./cache/huggingface/hub/models--datalab-to--surya_layout` like this
98+
99+
100+
```
101+
.
102+
├── blobs
103+
│ ├── 3890b5c4361d8c355b18efcbc083d80b-10
104+
│ ├── 5551e790c7d99f076fb8ff17b38339138e4fc543
105+
│ ├── 776774696986893ca5eb478899ea9d06c20435c5
106+
│ ├── a6344aac8c09253b3b630fb776ae94478aa0275b
107+
│ └── c305af17d2fcaf52c00b125a2dfabfbe16e71454
108+
├── refs
109+
│ └── main
110+
└── snapshots
111+
└── 7ac8e390226ee5fa2125dd303d827f79d31d1a1f
112+
├── config.json -> ../../blobs/5551e790c7d99f076fb8ff17b38339138e4fc543
113+
├── model.safetensors -> ../../blobs/3890b5c4361d8c355b18efcbc083d80b-10
114+
├── preprocessor_config.json -> ../../blobs/776774696986893ca5eb478899ea9d06c20435c5
115+
└── README.md -> ../../blobs/c305af17d2fcaf52c00b125a2dfabfbe16e71454
116+
117+
5 directories, 10 files
118+
```
119+
120+
and `./cache/huggingface/hub/models--datalab-to--ocr_error_detection` like this
121+
122+
123+
```
124+
.
125+
├── blobs
126+
│ ├── 21f54a4b56685f29358f3a8de1f5b8d827357d07
127+
│ ├── 9856c52ab99c8f7435bef6bf6e4c8a86a2594187
128+
│ ├── 9bbecc17cabbcbd3112c14d6982b51403b264bfa
129+
│ ├── a6344aac8c09253b3b630fb776ae94478aa0275b
130+
│ ├── c305af17d2fcaf52c00b125a2dfabfbe16e71454
131+
│ ├── cd3c57f2e967aad6a020decd1c1c41be-10
132+
│ ├── e837bab60a5d204e29622d127c2dafe508aa0731
133+
│ └── f4a46fa248690b0b2adc680e845ec8fd491eb24c
134+
├── refs
135+
│ └── main
136+
└── snapshots
137+
└── c1cbda3757670fd520553eaa5197656d331de414
138+
├── config.json -> ../../blobs/9856c52ab99c8f7435bef6bf6e4c8a86a2594187
139+
├── model.safetensors -> ../../blobs/cd3c57f2e967aad6a020decd1c1c41be-10
140+
├── README.md -> ../../blobs/c305af17d2fcaf52c00b125a2dfabfbe16e71454
141+
├── special_tokens_map.json -> ../../blobs/9bbecc17cabbcbd3112c14d6982b51403b264bfa
142+
├── tokenizer_config.json -> ../../blobs/f4a46fa248690b0b2adc680e845ec8fd491eb24c
143+
├── tokenizer.json -> ../../blobs/21f54a4b56685f29358f3a8de1f5b8d827357d07
144+
└── vocab.txt -> ../../blobs/e837bab60a5d204e29622d127c2dafe508aa0731
145+
146+
5 directories, 16 files
147+
```
148+
97149
and `./cache/huggingface/hub/models--vikp--texify` like this
98150

99151
```
@@ -136,7 +188,8 @@ It will use
136188
- `./cache/huggingface/hub/models--vikp--surya_rec2/snapshots/6611509b2c3a32c141703ce19adc899d9d0abf41`
137189
- `./cache/huggingface/hub/models--vikp--surya_tablerec/snapshots/8bca165f81e9cee5fb382413eb23175079917d14`
138190
- `./cache/huggingface/hub/models--vikp--texify/snapshots/ce49c1fe10842e78b8be61f9e762b85ac952807d`
139-
- `./cache/huggingface/hub/models--datalab-to--surya_layout0/snapshots/421ac206a400227ea714d47a405e53ce74374957`
191+
- `./cache/huggingface/hub/models--datalab-to--surya_layout/snapshots/7ac8e390226ee5fa2125dd303d827f79d31d1a1f`
192+
- `./cache/huggingface/hub/models--datalab-to--ocr_error_detection/snapshots/c1cbda3757670fd520553eaa5197656d331de414`
140193

141194
For more details, refer to [up@cpu-offline/docker-compose.yml](./../docker/up@cpu-offline/docker-compose.yml).
142195

@@ -158,5 +211,6 @@ huggingface-cli download vikp/surya_det3 --repo-type model --revision main --cac
158211
huggingface-cli download vikp/surya_rec2 --repo-type model --revision main --cache-dir ./cache/huggingface/hub
159212
huggingface-cli download vikp/surya_tablerec --repo-type model --revision main --cache-dir ./cache/huggingface/hub
160213
huggingface-cli download vikp/texify --repo-type model --revision main --cache-dir ./cache/huggingface/hub
161-
huggingface-cli download datalab-to/surya_layout0 --repo-type model --revision main --cache-dir ./cache/huggingface/hub
214+
huggingface-cli download datalab-to/surya_layout --repo-type model --revision main --cache-dir ./cache/huggingface/hub
215+
huggingface-cli download datalab-to/ocr_error_detection --revision main --cache-dir ./cache/huggingface/hub
162216
```

docker/build@pypi/dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
ARG MARKER_VERSION=1.1.0
2-
ARG STREAMLIT_VERSION=1.41.0
1+
ARG MARKER_VERSION=1.2.0
2+
ARG STREAMLIT_VERSION=1.41.1
33
ARG GRADIO_VERSION=5.8.0
44

55

@@ -33,7 +33,8 @@ RUN pip3 install --upgrade pip
3333
RUN pip3 install --no-cache-dir \
3434
marker-pdf==${MARKER_VERSION} \
3535
streamlit==${STREAMLIT_VERSION} \
36-
gradio==${GRADIO_VERSION}
36+
gradio==${GRADIO_VERSION} \
37+
datasets==2.21.0
3738

3839
# COPY --from=fonts /fonts/GoNotoCurrent-Regular.ttf /fonts/GoNotoCurrent-Regular.ttf
3940
# COPY --from=fonts /fonts/GoNotoCJKCore.ttf /fonts/GoNotoCJKCore.ttf

docker/build@source/dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ RUN pip3 install --upgrade pip
2525
COPY ./marker /app
2626
RUN pip3 install --no-cache-dir \
2727
-e . \
28-
streamlit==1.41.0 \
29-
gradio==5.8.0
28+
streamlit==1.41.1 \
29+
gradio==5.8.0 \
30+
datasets==2.21.0
3031
# The image is too large, with layers exceeding 10GB.
3132
# RUN pip3 install poetry
3233
# RUN poetry install --no-root --with dev

docker/up.gradio@cpu-offline/docker-compose.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,17 @@
22

33
services:
44
marker_gradio:
5-
image: xiaoyao9184/marker:1.1.0
5+
image: xiaoyao9184/marker:1.2.0
66
container_name: marker_pdf_gradio
77
working_dir: /workspace/gradio
88
command: gradio gradio_app.py
99
environment:
1010
- TORCH_DEVICE=cpu
1111
- HF_HUB_OFFLINE=true
1212
- DETECTOR_MODEL_CHECKPOINT=/root/.cache/huggingface/hub/models--vikp--surya_det3/snapshots/467ee9ec33e6e6c5f73e57dbc1415b14032f5b95
13-
- LAYOUT_MODEL_CHECKPOINT=/root/.cache/huggingface/hub/models--datalab-to--surya_layout0/snapshots/421ac206a400227ea714d47a405e53ce74374957
1413
- RECOGNITION_MODEL_CHECKPOINT=/root/.cache/huggingface/hub/models--vikp--surya_rec2/snapshots/6611509b2c3a32c141703ce19adc899d9d0abf41
14+
- LAYOUT_MODEL_CHECKPOINT=/root/.cache/huggingface/hub/models--datalab-to--surya_layout/snapshots/7ac8e390226ee5fa2125dd303d827f79d31d1a1f
15+
- OCR_ERROR_MODEL_CHECKPOINT=/root/.cache/huggingface/hub/models--datalab-to--ocr_error_detection/snapshots/c1cbda3757670fd520553eaa5197656d331de414
1516
- TABLE_REC_MODEL_CHECKPOINT=/root/.cache/huggingface/hub/models--vikp--surya_tablerec/snapshots/8bca165f81e9cee5fb382413eb23175079917d14
1617
- TEXIFY_MODEL_NAME=/root/.cache/huggingface/hub/models--vikp--texify/snapshots/ce49c1fe10842e78b8be61f9e762b85ac952807d
1718
ports:

docker/up.gradio@gpu-offline/docker-compose.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,17 @@
22

33
services:
44
marker_gradio:
5-
image: xiaoyao9184/marker:1.1.0
5+
image: xiaoyao9184/marker:1.2.0
66
container_name: marker_pdf_gradio
77
working_dir: /workspace/gradio
88
command: gradio gradio_app.py
99
environment:
1010
- TORCH_DEVICE=cuda
1111
- HF_HUB_OFFLINE=true
1212
- DETECTOR_MODEL_CHECKPOINT=/root/.cache/huggingface/hub/models--vikp--surya_det3/snapshots/467ee9ec33e6e6c5f73e57dbc1415b14032f5b95
13-
- LAYOUT_MODEL_CHECKPOINT=/root/.cache/huggingface/hub/models--datalab-to--surya_layout0/snapshots/421ac206a400227ea714d47a405e53ce74374957
1413
- RECOGNITION_MODEL_CHECKPOINT=/root/.cache/huggingface/hub/models--vikp--surya_rec2/snapshots/6611509b2c3a32c141703ce19adc899d9d0abf41
14+
- LAYOUT_MODEL_CHECKPOINT=/root/.cache/huggingface/hub/models--datalab-to--surya_layout/snapshots/7ac8e390226ee5fa2125dd303d827f79d31d1a1f
15+
- OCR_ERROR_MODEL_CHECKPOINT=/root/.cache/huggingface/hub/models--datalab-to--ocr_error_detection/snapshots/c1cbda3757670fd520553eaa5197656d331de414
1516
- TABLE_REC_MODEL_CHECKPOINT=/root/.cache/huggingface/hub/models--vikp--surya_tablerec/snapshots/8bca165f81e9cee5fb382413eb23175079917d14
1617
- TEXIFY_MODEL_NAME=/root/.cache/huggingface/hub/models--vikp--texify/snapshots/ce49c1fe10842e78b8be61f9e762b85ac952807d
1718
ports:

docker/up@cpu-offline/docker-compose.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22

33
services:
44
marker_app:
5-
image: xiaoyao9184/marker:1.1.0
5+
image: xiaoyao9184/marker:1.2.0
66
container_name: marker_pdf_app
77
environment:
88
- TORCH_DEVICE=cpu
99
- HF_HUB_OFFLINE=true
1010
- DETECTOR_MODEL_CHECKPOINT=/root/.cache/huggingface/hub/models--vikp--surya_det3/snapshots/467ee9ec33e6e6c5f73e57dbc1415b14032f5b95
11-
- LAYOUT_MODEL_CHECKPOINT=/root/.cache/huggingface/hub/models--datalab-to--surya_layout0/snapshots/421ac206a400227ea714d47a405e53ce74374957
1211
- RECOGNITION_MODEL_CHECKPOINT=/root/.cache/huggingface/hub/models--vikp--surya_rec2/snapshots/6611509b2c3a32c141703ce19adc899d9d0abf41
12+
- LAYOUT_MODEL_CHECKPOINT=/root/.cache/huggingface/hub/models--datalab-to--surya_layout/snapshots/7ac8e390226ee5fa2125dd303d827f79d31d1a1f
13+
- OCR_ERROR_MODEL_CHECKPOINT=/root/.cache/huggingface/hub/models--datalab-to--ocr_error_detection/snapshots/c1cbda3757670fd520553eaa5197656d331de414
1314
- TABLE_REC_MODEL_CHECKPOINT=/root/.cache/huggingface/hub/models--vikp--surya_tablerec/snapshots/8bca165f81e9cee5fb382413eb23175079917d14
1415
- TEXIFY_MODEL_NAME=/root/.cache/huggingface/hub/models--vikp--texify/snapshots/ce49c1fe10842e78b8be61f9e762b85ac952807d
1516
# - FONT_DIR=/fonts # not work

docker/up@gpu-offline/docker-compose.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22

33
services:
44
marker_app:
5-
image: xiaoyao9184/marker:1.1.0
5+
image: xiaoyao9184/marker:1.2.0
66
container_name: marker_pdf_app
77
environment:
88
- TORCH_DEVICE=cuda
99
- HF_HUB_OFFLINE=true
1010
- DETECTOR_MODEL_CHECKPOINT=/root/.cache/huggingface/hub/models--vikp--surya_det3/snapshots/467ee9ec33e6e6c5f73e57dbc1415b14032f5b95
11-
- LAYOUT_MODEL_CHECKPOINT=/root/.cache/huggingface/hub/models--datalab-to--surya_layout0/snapshots/421ac206a400227ea714d47a405e53ce74374957
1211
- RECOGNITION_MODEL_CHECKPOINT=/root/.cache/huggingface/hub/models--vikp--surya_rec2/snapshots/6611509b2c3a32c141703ce19adc899d9d0abf41
12+
- LAYOUT_MODEL_CHECKPOINT=/root/.cache/huggingface/hub/models--datalab-to--surya_layout/snapshots/7ac8e390226ee5fa2125dd303d827f79d31d1a1f
13+
- OCR_ERROR_MODEL_CHECKPOINT=/root/.cache/huggingface/hub/models--datalab-to--ocr_error_detection/snapshots/c1cbda3757670fd520553eaa5197656d331de414
1314
- TABLE_REC_MODEL_CHECKPOINT=/root/.cache/huggingface/hub/models--vikp--surya_tablerec/snapshots/8bca165f81e9cee5fb382413eb23175079917d14
1415
- TEXIFY_MODEL_NAME=/root/.cache/huggingface/hub/models--vikp--texify/snapshots/ce49c1fe10842e78b8be61f9e762b85ac952807d
1516
# - FONT_DIR=/fonts # not work

0 commit comments

Comments
 (0)