We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d6a1a0 commit 9b3cf80Copy full SHA for 9b3cf80
orthophoto-segmentation-benchmark-toolkit/experiment.py
@@ -1,5 +1,6 @@
1
import datetime
2
import zipfile
3
+import json
4
from tensorflow.keras.callbacks import TensorBoard, ModelCheckpoint
5
from tensorflow.keras.backend import clear_session
6
import matplotlib.pyplot as plt
@@ -74,6 +75,8 @@ def train(self, epochs):
74
75
callbacks=callbacks
76
)
77
self.plot_segm_history(history)
78
+ with open(f"{self.basedir}/train_history.json", 'w') as outfile:
79
+ json.dump(history.history, outfile)
80
81
def generate_inference_test_files(self):
82
clear_session()
0 commit comments