I hate the python code intelligence

it's bad
This commit is contained in:
Starbeamrainbowlabs 2022-12-08 18:55:15 +00:00
parent ff56f591c7
commit 26766366fc
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -30,7 +30,7 @@ def parse_item(metadata, shape_water_desired=[100,100], water_threshold=0.1, wat
heightmap = tf.expand_dims(heightmap, axis=-1)
# NORMALLY, this wouldn't work 'cause you'd need to know the max of ALL frames, but here we only have a single frame.
heightmap_max = tf.math.reduce_max(heightmap)
heightmap_min = tf.math.reduce_min(tf.where(tf.math.less(heightmap, -500), a, tf.fill(heightmap.shape, 0)))
heightmap_min = tf.math.reduce_min(tf.where(tf.math.less(heightmap, -500), heightmap, tf.fill(heightmap.shape, 0)))
heightmap = (heightmap - heightmap_min) / heightmap_max
def parse_item_inner(item):