Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -56,8 +56,8 @@ dinov2 = torch.hub.load('facebookresearch/dinov2', 'dinov2_vitg14_reg')
|
|
| 56 |
print("Loading custom pathology checkpoint...")
|
| 57 |
#ours = torch.load("/data/linears/teacher_checkpoint.pth")
|
| 58 |
|
| 59 |
-
checkpoint = torch.load("./teacher_checkpoint_load.pt")
|
| 60 |
-
|
| 61 |
|
| 62 |
|
| 63 |
new_shape = checkpoint["pos_embed"]
|
|
|
|
| 56 |
print("Loading custom pathology checkpoint...")
|
| 57 |
#ours = torch.load("/data/linears/teacher_checkpoint.pth")
|
| 58 |
|
| 59 |
+
#checkpoint = torch.load("./teacher_checkpoint_load.pt")
|
| 60 |
+
checkpoint = torch.hub.load_state_dict_from_url("https://huggingface.co/SophontAI/OpenMidnight/resolve/main/teacher_checkpoint_load.pt")
|
| 61 |
|
| 62 |
|
| 63 |
new_shape = checkpoint["pos_embed"]
|