liangzhongquan 2 år sedan
förälder
incheckning
673483ad68
2 ändrade filer med 4 tillägg och 2 borttagningar
  1. 2 1
      Dockerfile
  2. 2 1
      server.py

+ 2 - 1
Dockerfile

@@ -100,7 +100,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/best.pt
+RUN wget --user=sxkj --password='sx' ftp://192.168.199.208/best2.pt
 
 Add . /workspace
 EXPOSE 8080

+ 2 - 1
server.py

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