model trainer: speed up by waiting 15 seconds between monitor renders
[?]
Jul 6, 2021, 12:06 AM
ALMG52BOHW6WB6H7DF742GHU6VWUEPQFLWNFYU3PQBDSD4HQ7VJACDependencies
- [2]
7ML3OFE7Model trainer: initial train and visualize thread pair (total crust mass; todo: altitude instead) - [3]
ROQCAPZJBegin function for showing the map (for now just opens SDL window) - [4]
IGYI5RVVFigure out how to draw on the sdl2 window - [*]
5AMZXFS5model trainer: function to generate inputs to pass neural network for rendering equirectangular projection
Change contents
- edit in trainmodel/src/drawmap.py at line 6[3.53][6.0]
import time - edit in trainmodel/src/drawmap.py at line 14
- edit in trainmodel/src/drawmap.py at line 19
last_rendered = 0 - replacement in trainmodel/src/drawmap.py at line 21
outputs = monitor.snapshot()(inputs)outputs = tf.math.multiply(255, tf.reshape(outputs, (512, 1024, outputs.shape[1])))image = tensor_to_surface(outputs)sdl2.SDL_BlitSurface(image, None, windowsurface, None)if time.monotonic() - last_rendered > 15:outputs = monitor.snapshot()(inputs)outputs = tf.math.multiply(255, tf.reshape(outputs, (512, 1024, outputs.shape[1])))image = tensor_to_surface(outputs)sdl2.SDL_BlitSurface(image, None, windowsurface, None)last_rendered = time.monotonic()sdl2.SDL_FreeSurface(image) - edit in trainmodel/src/drawmap.py at line 34
sdl2.SDL_FreeSurface(image)