peter-ch / MultiNEAT

Portable NeuroEvolution Library
http://MultiNEAT.com
GNU Lesser General Public License v3.0
327 stars 104 forks source link

Problem with Load() function #66

Open LPioL opened 3 years ago

LPioL commented 3 years ago

Hi,

I try to save and load the phenotype I have after evolution. The Load function() freezes my computer by using all the memory. You can replicate this problem with:

winner_net_CPPN = NEAT.NeuralNetwork() best_genome.BuildPhenotype(winner_net_CPPN) winner_net = NEAT.NeuralNetwork() best_genome.BuildESHyperNEATPhenotype(winner_net, substrate, params) winner_net.Save("winner_net.txt") winner_net.Load("winner_net.txt")

If you have any idea how to resolve this, it would be great!