mirror of
https://github.com/sbrl/research-rainfallradar
synced 2024-11-25 10:32:59 +00:00
ai from_checkpoint: bugfix
This commit is contained in:
parent
c9e00ea485
commit
decdd434d8
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ class RainfallWaterContraster(object):
|
|||
|
||||
@staticmethod
|
||||
def from_checkpoint(filepath_checkpoint, filepath_hyperparams=None):
|
||||
if filepath_checkpoint is None:
|
||||
if not filepath_checkpoint:
|
||||
filepath_checkpoint = find_paramsjson(filepath_checkpoint)
|
||||
hyperparams = json.loads(readfile(filepath_hyperparams))
|
||||
return RainfallWaterContraster(filepath_checkpoint=filepath_checkpoint, **hyperparams)
|
||||
|
|
Loading…
Reference in a new issue