Jelajahi Sumber

地址修改

liangzhongquan 2 tahun lalu
induk
melakukan
0860e15b27
1 mengubah file dengan 2 tambahan dan 4 penghapusan
  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")