This repository has been archived by the owner on Jul 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from zhangchi0104/main
添加了Docker镜像的配置
- Loading branch information
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
ARG OCR_LANG=zh_CN | ||
ARG PRETRAINED_MODEL=ch_PP-OCRv3_rec_distillation | ||
ARG VERSION=22.05 | ||
FROM nvcr.io/nvidia/paddlepaddle:{22.05}-py3 | ||
|
||
RUN git clone https://gitee.com/paddlepaddle/PaddleOCR.git /PaddleOCR --depth=1 && \ | ||
cd /PaddleOCR && \ | ||
pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple && \ | ||
pip install opencv-python-headless -i https://pypi.tuna.tsinghua.edu.cn/simple | ||
|
||
COPY output/$OCR_LANG /workspace/output/$OCR_LANG | ||
COPY output/render/$OCR_LANG /workspace/output/render/$OCR_LANG | ||
COPY pretrained_model/$PRETRAINED_MODEL /workspace/pretrained_model/$PRETRAINED_MODEL | ||
COPY *.yml /workspace/ | ||
WORKDIR /workspace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters