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

+ 2 - 4
server.py

@@ -10,11 +10,9 @@ import torch
 import base64
 import random
 
-# YOLO_DIR = '/workspace/yolov5'
-YOLO_DIR = '/Users/sxkj/opt/python-workspace/yili-ocr/yl-ocr-layout/yolov5'
+YOLO_DIR = '/workspace/yolov5'
 # WEIGHTS = '/data/yolov5/runs/train/yolov5x_layout_reuslt37/weights/best.pt'
-# WEIGHTS = '/workspace/best.pt'
-WEIGHTS = '/Users/sxkj/opt/python-workspace/yili-ocr/yl-ocr-layout/best.pt'
+WEIGHTS = '/workspace/best.pt'
 
 device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")