瀏覽代碼

更换模型

liangzhongquan 2 年之前
父節點
當前提交
2f6dd5e16b
共有 2 個文件被更改,包括 4 次插入2 次删除
  1. 2 1
      Dockerfile
  2. 2 1
      server.py

+ 2 - 1
Dockerfile

@@ -101,7 +101,8 @@ environment=CUDA_VISIBLE_DEVICES=0,PYTHONPATH=/worksapce/yolov5\n\
 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/best2.pt
+RUN wget --user=sxkj --password='sx' ftp://192.168.199.208/yili2.pt
 
 Add . /workspace
 EXPOSE 8080

+ 2 - 1
server.py

@@ -15,8 +15,9 @@ import logging
 YOLO_DIR = '/workspace/yolov5'
 # WEIGHTS = '/data/yolov5/runs/train/yolov5x_layout_reuslt37/weights/best.pt'
 # WEIGHTS = '/workspace/best.pt'
-WEIGHTS = '/workspace/best2.pt'
 # WEIGHTS = '/workspace/yili.pt'
+# WEIGHTS = '/workspace/best2.pt'
+WEIGHTS = '/workspace/yili2.pt'
 
 logger = logging.getLogger('log')
 logger.setLevel(logging.DEBUG)