mirror of
https://github.com/sbrl/research-rainfallradar
synced 2024-11-22 01:12:59 +00:00
reordering
This commit is contained in:
parent
b9d01ddadc
commit
389216b391
1 changed files with 3 additions and 2 deletions
|
@ -28,8 +28,6 @@ class RainfallWaterContraster(object):
|
|||
|
||||
|
||||
if filepath_checkpoint == None:
|
||||
writefile(self.filepath_summary, "") # Empty the file ahead of time
|
||||
self.model = self.make_model()
|
||||
if self.dir_output == None:
|
||||
raise Exception("Error: dir_output was not specified, and since no checkpoint was loaded training mode is activated.")
|
||||
if not os.path.exists(self.dir_output):
|
||||
|
@ -37,6 +35,9 @@ class RainfallWaterContraster(object):
|
|||
|
||||
self.filepath_summary = os.path.join(self.dir_output, "summary.txt")
|
||||
|
||||
writefile(self.filepath_summary, "") # Empty the file ahead of time
|
||||
self.model = self.make_model()
|
||||
|
||||
summarywriter(self.model, self.filepath_summary, append=True)
|
||||
writefile(os.path.join(self.dir_output, "params.json"), json.dumps(self.get_config()))
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue