Spaces:
Sleeping
Sleeping
Commit
·
eaab397
1
Parent(s):
a782c75
fix
Browse files
app/Hackathon_setup/face_recognition.py
CHANGED
|
@@ -104,7 +104,7 @@ def get_face_class(img1):
|
|
| 104 |
##Better Hint: Siamese experiment is covered in one of the labs
|
| 105 |
classifier_net = Classifier()
|
| 106 |
model = torch.load(current_path + '/classifier_model.t7',map_location=torch.device('cpu'))
|
| 107 |
-
|
| 108 |
|
| 109 |
feature_net = SiameseNetwork()
|
| 110 |
model = torch.load(current_path + '/siamese_model.t7',map_location=torch.device('cpu'))
|
|
|
|
| 104 |
##Better Hint: Siamese experiment is covered in one of the labs
|
| 105 |
classifier_net = Classifier()
|
| 106 |
model = torch.load(current_path + '/classifier_model.t7',map_location=torch.device('cpu'))
|
| 107 |
+
classifier_net.load_state_dict(model['net_dict'])
|
| 108 |
|
| 109 |
feature_net = SiameseNetwork()
|
| 110 |
model = torch.load(current_path + '/siamese_model.t7',map_location=torch.device('cpu'))
|