Skip to content

Commit

Permalink
ensemble_model_prediction correction
Browse files Browse the repository at this point in the history
  • Loading branch information
kspruthviraj committed Jul 13, 2022
1 parent 8efc98d commit 5ef001c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/model_training.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ def run_ensemble_prediction_on_unseen(self, test_main, data_loader, name):
Ens_DEIT_label = Ens_DEIT_label.tolist()

To_write = [i + '------------------' + j + '\n' for i, j in zip(im_names[0], Ens_DEIT_label)]
np.savetxt(test_main.params.test_outpath + '/Ensemble_models_Plankiformer_predictions' + name2 + name + '.txt', To_write, fmt='%s')
np.savetxt(test_main.params.test_outpath + '/Ensemble_models_Plankiformer_predictions_' + name2 + name + '.txt', To_write, fmt='%s')

def initialize_model(self, train_main, test_main, data_loader, lr):
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
Expand Down

0 comments on commit 5ef001c

Please sign in to comment.