From dbff15d4a9ad63c9726ca037d1219f9d29c0a61b Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Thu, 1 Sep 2022 19:05:50 +0100 Subject: [PATCH] add bug comment --- aimodel/src/lib/dataset/dataset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aimodel/src/lib/dataset/dataset.py b/aimodel/src/lib/dataset/dataset.py index 3ef9677..6420ee7 100644 --- a/aimodel/src/lib/dataset/dataset.py +++ b/aimodel/src/lib/dataset/dataset.py @@ -25,7 +25,7 @@ def parse_item(metadata): rainfall = tf.transpose(rainfall, [1, 2, 0]) # [width, height] → [width, height, channels] water = tf.expand_dims(water, axis=-1) - + # BUG: AttributeError: 'dict' object has no attribute 'waterdepth rainfall = tf.image.resize(rainfall, tf.constant(metadata.waterdepth)) # TODO: The shape of the resulting tensor can't be statically determined, so we need to reshape here