Browse Source

更换模型

zeke-chin 2 years ago
parent
commit
e66a17b2f8
2 changed files with 5 additions and 3 deletions
  1. 4 2
      Dockerfile
  2. 1 1
      server.py

+ 4 - 2
Dockerfile

@@ -102,9 +102,11 @@ 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/8-14_layout_model.pt
+RUN wget --user=sxkj --password='sx' ftp://192.168.199.208/0822yili.pt
 
-ADD . /workspace    
+
+ADD . /workspace
 EXPOSE 8080
 
 

+ 1 - 1
server.py

@@ -18,7 +18,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/0822yili.pt'
 
 logger = logging.getLogger('log')
 logger.setLevel(logging.DEBUG)