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
37b36df5
Unverified
Commit
37b36df5
authored
Nov 13, 2024
by
Xiaomeng Zhao
Committed by
GitHub
Nov 13, 2024
Browse files
Merge pull request #941 from myhloli/dev
build(Dockerfile): update model download script and dependencies
parents
a703cf3e
963d0be1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
Dockerfile
Dockerfile
+1
-1
requirements-docker.txt
requirements-docker.txt
+6
-2
No files found.
Dockerfile
View file @
37b36df5
...
@@ -42,7 +42,7 @@ RUN /bin/bash -c "wget https://gitee.com/myhloli/MinerU/raw/master/magic-pdf.tem
...
@@ -42,7 +42,7 @@ RUN /bin/bash -c "wget https://gitee.com/myhloli/MinerU/raw/master/magic-pdf.tem
# Download models and update the configuration file
# Download models and update the configuration file
RUN
/bin/bash
-c
"pip3 install modelscope &&
\
RUN
/bin/bash
-c
"pip3 install modelscope &&
\
wget https://gitee.com/myhloli/MinerU/raw/master/
doc
s/download_models.py &&
\
wget https://gitee.com/myhloli/MinerU/raw/master/
script
s/download_models.py &&
\
python3 download_models.py &&
\
python3 download_models.py &&
\
sed -i 's|/tmp/models|/root/.cache/modelscope/hub/opendatalab/PDF-Extract-Kit/models|g' /root/magic-pdf.json &&
\
sed -i 's|/tmp/models|/root/.cache/modelscope/hub/opendatalab/PDF-Extract-Kit/models|g' /root/magic-pdf.json &&
\
sed -i 's|cpu|cuda|g' /root/magic-pdf.json"
sed -i 's|cpu|cuda|g' /root/magic-pdf.json"
...
...
requirements-docker.txt
View file @
37b36df5
...
@@ -12,7 +12,11 @@ matplotlib
...
@@ -12,7 +12,11 @@ matplotlib
ultralytics
ultralytics
paddleocr==2.7.3
paddleocr==2.7.3
paddlepaddle==3.0.0b1
paddlepaddle==3.0.0b1
pypandoc
struct-eqtable==0.3.2
struct-eqtable==0.1.0
einops
accelerate
doclayout_yolo==0.0.2
rapidocr-paddle
rapid_table
doclayout-yolo==0.0.2
doclayout-yolo==0.0.2
detectron2
detectron2
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