esun-choi commited on
Commit
b5283fc
·
1 Parent(s): 022722e

Update seg2.py

Browse files
Files changed (1) hide show
  1. seg2.py +1 -1
seg2.py CHANGED
@@ -10,7 +10,7 @@ import cv2
10
  T2=transforms.ToPILImage()
11
 
12
 
13
- weights="/home/ksyint/other1213/craft_ku/weights/dinov2.pt"
14
  device=torch.device("cpu")
15
  model = Segmentor(device,1,backbone = 'dinov2_b',head="conv")
16
  model.load_state_dict(torch.load(weights,map_location="cpu"))
 
10
  T2=transforms.ToPILImage()
11
 
12
 
13
+ weights="./weights/dinov2.pt"
14
  device=torch.device("cpu")
15
  model = Segmentor(device,1,backbone = 'dinov2_b',head="conv")
16
  model.load_state_dict(torch.load(weights,map_location="cpu"))