ai: how did I miss that?!

bugfix ah/c
This commit is contained in:
Starbeamrainbowlabs 2022-09-14 16:53:43 +01:00
parent decdd434d8
commit 6bda24d4da
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -53,7 +53,7 @@ class RainfallWaterContraster(object):
@staticmethod
def from_checkpoint(filepath_checkpoint, filepath_hyperparams=None):
if not filepath_checkpoint:
filepath_checkpoint = find_paramsjson(filepath_checkpoint)
filepath_hyperparams = find_paramsjson(filepath_checkpoint)
hyperparams = json.loads(readfile(filepath_hyperparams))
return RainfallWaterContraster(filepath_checkpoint=filepath_checkpoint, **hyperparams)