Gamma correction

[?]
Jul 6, 2021, 4:09 AM
4IXWCEHMWCEXNCDYUV3H44UPQ7R4HKS3RWRWII7LU4PA6ZZRAS3AC

Dependencies

  • [2] 2ABZP2KN Model trainer: save map.png after training
  • [3] ALMG52BO model trainer: speed up by waiting 15 seconds between monitor renders
  • [4] SJHJS463 Model trainer: main function to open sdl window and launch second thread for actual training
  • [5] ROQCAPZJ Begin function for showing the map (for now just opens SDL window)
  • [*] ZM2EMAZO Start doing python multi-module stuff properly

Change contents

  • replacement in trainmodel/src/drawmap.py at line 23
    [3.127][3.127:219]()
    outputs = tf.math.multiply(255, tf.reshape(outputs, (512, 1024, outputs.shape[1])))
    [3.127]
    [3.219]
    outputs = tf.math.multiply(255, tf.reshape(outputs ** 0.35, (512, 1024, outputs.shape[1])))
  • replacement in trainmodel/src/__main__.py at line 16
    [2.175][2.175:222]()
    outputs = tf.cast(outputs * 255, tf.uint8)
    [2.175]
    [2.222]
    outputs = tf.cast(outputs ** 0.35 * 255, tf.uint8)