diff --git a/modules/deeplearning/espcn.py b/modules/deeplearning/espcn.py index 1c706e2893f556941d12006d3cb7855ff744d3a3..50626c18e37f9f76c2b5c4f8ac9c5bc601b99598 100644 --- a/modules/deeplearning/espcn.py +++ b/modules/deeplearning/espcn.py @@ -580,15 +580,6 @@ class ESPCN: self.writer_valid.close() self.writer_train_valid_loss.close() - if self.h5f_l1b_trn is not None: - self.h5f_l1b_trn.close() - if self.h5f_l1b_tst is not None: - self.h5f_l1b_tst.close() - if self.h5f_l2_trn is not None: - self.h5f_l2_trn.close() - if self.h5f_l2_tst is not None: - self.h5f_l2_tst.close() - # f = open(home_dir+'/best_stats_'+now+'.pkl', 'wb') # pickle.dump((best_test_loss, best_test_acc, best_test_recall, best_test_precision, best_test_auc, best_test_f1, best_test_mcc), f) # f.close()