4 Commits c601e36473 ... 2f6dd5e16b

Author SHA1 Message Date
  zeke-chin c601e36473 更新: 版面检测模型 2 years ago
  zeke-chin c122502c4b Merge branch 'master' of https://gogs.soaringnova.com/sxwl_DL/yl-ocr-layout 2 years ago
  zeke-chin 5059ee4b67 更新: 版面检测模型 2 years ago
  sxwl_DL ce07b32b5d 更新 'Dockerfile' 2 years ago
2 changed files with 4 additions and 4 deletions
  1. 3 3
      Dockerfile
  2. 1 1
      server.py

+ 3 - 3
Dockerfile

@@ -93,7 +93,7 @@ startretries=0\n\
 redirect_stderr=true\n\
 stdout_logfile=/var/log/be.log\n\
 stdout_logfile_maxbytes=50MB\n\
-environment=CUDA_VISIBLE_DEVICES=0,PYTHONUNBUFFERED=1,PYTHONPATH=/worksapce/yolov5\n\
+environment=CUDA_VISIBLE_DEVICES=0,PYTHONPATH=/worksapce/yolov5\n\
 " > /etc/supervisor/conf.d/be.conf
 
 # envs/py38/
@@ -102,9 +102,9 @@ RUN git clone https://gitee.com/monkeycc/yolov5.git
 # RUN wget --user=sxkj --password='sx' ftp://192.168.199.208/yili.pt
 # RUN wget --user=sxkj --password='sx' ftp://192.168.199.208/best.pt
 # RUN wget --user=sxkj --password='sx' ftp://192.168.199.208/best2.pt
-RUN wget --user=sxkj --password='sx' ftp://192.168.199.208/8-14_layout_model.pt
+RUN wget --user=sxkj --password='sx' ftp://192.168.199.208/yili2.pt
 
-ADD . /workspace
+Add . /workspace
 EXPOSE 8080
 
 

+ 1 - 1
server.py

@@ -17,7 +17,7 @@ YOLO_DIR = '/workspace/yolov5'
 # WEIGHTS = '/workspace/best.pt'
 # WEIGHTS = '/workspace/yili.pt'
 # WEIGHTS = '/workspace/best2.pt'
-WEIGHTS = '/workspace/8-14_layout_model.pt'
+WEIGHTS = '/workspace/yili2.pt'
 
 logger = logging.getLogger('log')
 logger.setLevel(logging.DEBUG)