Begin function for showing the map (for now just opens SDL window)
[?]
Jun 14, 2021, 12:15 PM
ROQCAPZJPLENWBMHRK7DNH3CIMZRHPBMVBBKT7NQXRIFHEDZ5JHQCDependencies
- [2]
X5U7KRUIParse some of the data into tensors - [3]
VKA5CCGCAdd pysdl2 to the trainmodel dependencies so I'll be able to visualize what's going on.
Change contents
- file addition: drawmap.py[2.6]
import sysimport sdl2import sdl2.extdef run():# Use equirectangular projectionwindow = sdl2.ext.Window("Training neural network: memorizing fictional world map", size=(1024,512))window.show()running = Truewhile running:events = sdl2.ext.get_events()for event in events:if event.type == sdl2.SDL_QUIT:running = Falsebreakwindow.refresh()return 0