From ff56f591c79221292638e8116f8fb69d6300cd84 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Thu, 8 Dec 2022 18:53:37 +0000 Subject: [PATCH] I hate python --- aimodel/src/lib/dataset/parse_heightmap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aimodel/src/lib/dataset/parse_heightmap.py b/aimodel/src/lib/dataset/parse_heightmap.py index 24861d9..3005906 100644 --- a/aimodel/src/lib/dataset/parse_heightmap.py +++ b/aimodel/src/lib/dataset/parse_heightmap.py @@ -6,7 +6,7 @@ from ..io.readfile import readfile def parse_heightmap(filepath_heightmap): obj = json.loads(readfile(filepath_heightmap)) - result = tf.constant(obj.data) + result = tf.constant(obj["data"]) result = tf.transpose(result, [1,0]) # [ height, width ] → [ width, height ] return result \ No newline at end of file