Spaces:
Build error
Build error
Commit ·
74c738d
1
Parent(s): 35b2170
Fix weights path
Browse files- source/predict_sample.py +1 -1
source/predict_sample.py
CHANGED
|
@@ -45,7 +45,7 @@ def main_classification(image):
|
|
| 45 |
cnn = CNN().to(torch.device("cpu"))
|
| 46 |
cnn.eval()
|
| 47 |
|
| 48 |
-
cnn.load_state_dict(torch.load(f='weights/CNN-B8-LR-0.01-E30.pt', map_location=torch.device("cpu")))
|
| 49 |
|
| 50 |
prediction_outcome = classify_eye(image, cnn)
|
| 51 |
|
|
|
|
| 45 |
cnn = CNN().to(torch.device("cpu"))
|
| 46 |
cnn.eval()
|
| 47 |
|
| 48 |
+
cnn.load_state_dict(torch.load(f='source/weights/CNN-B8-LR-0.01-E30.pt', map_location=torch.device("cpu")))
|
| 49 |
|
| 50 |
prediction_outcome = classify_eye(image, cnn)
|
| 51 |
|