Skip to content

Commit

Permalink
Merge pull request #941 from myhloli/dev
Browse files Browse the repository at this point in the history
build(Dockerfile): update model download script and dependencies
  • Loading branch information
myhloli authored Nov 13, 2024
2 parents a703cf3 + 963d0be commit 37b36df
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
RUN /bin/bash -c "pip3 install modelscope && \
wget https://gitee.com/myhloli/MinerU/raw/master/docs/download_models.py && \
wget https://gitee.com/myhloli/MinerU/raw/master/scripts/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|cpu|cuda|g' /root/magic-pdf.json"
Expand Down
8 changes: 6 additions & 2 deletions requirements-docker.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ matplotlib
ultralytics
paddleocr==2.7.3
paddlepaddle==3.0.0b1
pypandoc
struct-eqtable==0.1.0
struct-eqtable==0.3.2
einops
accelerate
doclayout_yolo==0.0.2
rapidocr-paddle
rapid_table
doclayout-yolo==0.0.2
detectron2

0 comments on commit 37b36df

Please sign in to comment.