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)