mirror of
https://github.com/sbrl/research-rainfallradar
synced 2024-11-22 09:13:01 +00:00
ai: how did I miss that?!
bugfix ah/c
This commit is contained in:
parent
decdd434d8
commit
6bda24d4da
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ class RainfallWaterContraster(object):
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def from_checkpoint(filepath_checkpoint, filepath_hyperparams=None):
|
def from_checkpoint(filepath_checkpoint, filepath_hyperparams=None):
|
||||||
if not filepath_checkpoint:
|
if not filepath_checkpoint:
|
||||||
filepath_checkpoint = find_paramsjson(filepath_checkpoint)
|
filepath_hyperparams = find_paramsjson(filepath_checkpoint)
|
||||||
hyperparams = json.loads(readfile(filepath_hyperparams))
|
hyperparams = json.loads(readfile(filepath_hyperparams))
|
||||||
return RainfallWaterContraster(filepath_checkpoint=filepath_checkpoint, **hyperparams)
|
return RainfallWaterContraster(filepath_checkpoint=filepath_checkpoint, **hyperparams)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue