snake
snake copied to clipboard
Runtime error at start
I think your code is broken:
pygame 2.1.2 (SDL 2.0.16, Python 3.10.4)
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
File "/home/yolo/Workstation/Clones/snake/main.py", line 30, in <module>
net.load(filename_weights='saved/joseph_weights.npy', filename_biases='saved/joseph_biases.npy')
File "/home/yolo/Workstation/Clones/snake/neural_network.py", line 75, in load
self.weights = np.load(filename_weights)
File "/usr/lib/python3/dist-packages/numpy/lib/npyio.py", line 440, in load
return format.read_array(fid, allow_pickle=allow_pickle,
File "/usr/lib/python3/dist-packages/numpy/lib/format.py", line 743, in read_array
raise ValueError("Object arrays cannot be loaded when "
ValueError: Object arrays cannot be loaded when allow_pickle=False