File tree Expand file tree Collapse file tree 4 files changed +19
-26
lines changed
Expand file tree Collapse file tree 4 files changed +19
-26
lines changed Original file line number Diff line number Diff line change @@ -3,36 +3,13 @@ FROM python:3.7
33
44RUN apt-get update
55RUN apt-get install ffmpeg libsm6 libxext6 -y
6- # ENV LANG=en_US.utf8
7- # ENV LANG=C.UTF-8
86
9- # ENV PYTHONUNBUFFERED=TRUE
10- # ENV PYTHONDONTWRITEBYTECODE=TRUE
11- # ENV PATH="/opt/program:${PATH}"
7+ COPY ocr_data_generator/ /opt/program/ocr_data_generator
128
13- # RUN pip3 install --upgrade pip
9+ WORKDIR /opt/program
10+ RUN cd ./ocr_data_generator && pip install -r requirements.txt
1411
15- # ## install paddlepaddle framework
16- # RUN pip3 install paddlepaddle-gpu -i https://mirror.baidu.com/pypi/simple
17- # RUN pip3 install paddleocr==2.0.1
1812
19- # ## clone PaddleOCR source code
20- # RUN git clone -b release/2.1 https://github.com/PaddlePaddle/PaddleOCR.git /opt/program/
21-
22-
23- # #download pretrained model for finetunine
24- # RUN mkdir /opt/program/pretrain/
25- # RUN cd /opt/program/pretrain/
26- # RUN wget -P /opt/program/pretrain/ https://paddleocr.bj.bcebos.com/dygraph_v2.0/ch/ch_ppocr_mobile_v2.0_rec_train.tar && tar -xf /opt/program/pretrain/ch_ppocr_mobile_v2.0_rec_train.tar -C /opt/program/pretrain/ && rm -rf /opt/program/pretrain/ch_ppocr_mobile_v2.0_rec_train.tar
27-
28- # Set up the program in the image
29- RUN git clone https://github.com/catwhiskers/ocr_data_generator.git
30-
31- # WORKDIR /opt/program
32- RUN cd ./ocr_data_generator && pip install -r requirements.txt && python generate_data.py seto_font train data/ZH_1.txt setofont
33-
34-
35- # ENTRYPOINT ["python3", "train.py"]
3613
3714
3815
Original file line number Diff line number Diff line change 1+ numpy == 1.16.4
2+ opencv-python == 4.3.0.38
3+ imutils == 0.5.3
4+ trdg
5+ scipy == 1.3.1
6+ glog
7+ matplotlib
8+ zxing
9+ fitz
10+ PyMuPDF
11+ fontTools
12+ tqdm == 4.42.1
13+ shapely
14+ imgaug
15+ pyclipper
16+ lmdb
You can’t perform that action at this time.
0 commit comments