Skip to content

Commit

Permalink
fix errors in ensemble output saver of models trained on train datase…
Browse files Browse the repository at this point in the history
…t only
  • Loading branch information
dakshitagrawal authored and aarushgupta committed Nov 6, 2018
1 parent c80ae99 commit e8a806c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Ensemble_Models/Model_OutputSaver_TrainDataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ def forward(self, x, y):
# Pretrained EmotiW DenseNet (DenseNet161_EmotiW)
#---------------------------------------------------------------------------

global_model = torch.load('../TrainedModels/TrainDataset/DenseNet161_EmotiW', map_location=lambda storage, loc: storage).module
global_model = torch.load('../TrainedModels/TrainDataset/DenseNet161_EmotiW', map_location=lambda storage, loc: storage)
model1 = global_model
print('Pretrained EmotiW DenseNet Loaded! (Model 1)')

Expand Down
2 changes: 1 addition & 1 deletion Ensemble_Models/Model_Test_OutputSaver_TrainDataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ def forward(self, x, y):
# Pretrained EmotiW DenseNet (DenseNet161_EmotiW)
#---------------------------------------------------------------------------

global_model = torch.load('../TrainedModels/TrainDataset/DenseNet161_EmotiW', map_location=lambda storage, loc: storage).module
global_model = torch.load('../TrainedModels/TrainDataset/DenseNet161_EmotiW', map_location=lambda storage, loc: storage)
model1 = global_model
print('Pretrained EmotiW DenseNet Loaded! (Model 1)')

Expand Down

0 comments on commit e8a806c

Please sign in to comment.