change model path
Browse files- predict.py +1 -1
predict.py
CHANGED
@@ -30,7 +30,7 @@ class DeiT(nn.Module):
|
|
30 |
return outputs.logits
|
31 |
|
32 |
# Load model
|
33 |
-
model_path = hf_hub_download(repo_id="Noha90/AML_16", filename="deit_best_model.pth"
|
34 |
print("Model path:", model_path)
|
35 |
model = DeiT(num_classes=len(class_names))
|
36 |
state_dict = torch.load(model_path, map_location="cpu")
|
|
|
30 |
return outputs.logits
|
31 |
|
32 |
# Load model
|
33 |
+
model_path = hf_hub_download(repo_id="Noha90/AML_16", filename="deit_best_model.pth")
|
34 |
print("Model path:", model_path)
|
35 |
model = DeiT(num_classes=len(class_names))
|
36 |
state_dict = torch.load(model_path, map_location="cpu")
|