From 6bda24d4da6d1727d569925c05e9cb6913ed6730 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Wed, 14 Sep 2022 16:53:43 +0100 Subject: [PATCH] ai: how did I miss that?! bugfix ah/c --- aimodel/src/lib/ai/RainfallWaterContraster.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aimodel/src/lib/ai/RainfallWaterContraster.py b/aimodel/src/lib/ai/RainfallWaterContraster.py index e774610..b177e95 100644 --- a/aimodel/src/lib/ai/RainfallWaterContraster.py +++ b/aimodel/src/lib/ai/RainfallWaterContraster.py @@ -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)