Spaces:
Sleeping
Sleeping
Update seg2.py
Browse files
seg2.py
CHANGED
@@ -10,7 +10,7 @@ import cv2
|
|
10 |
T2=transforms.ToPILImage()
|
11 |
|
12 |
|
13 |
-
weights="
|
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"))
|