Mapping Weights to Structure
adilraja opened this issue · comments
Hi,
I have run this code many times. A problem that I have is that sometimes when I try to load a trained network with weights, the weights don't map on to the network. Here is an example of the error that I get.
ValueError: You are trying to load a weight file containing 1 layers into a model with 4 layers.
I wonder if there is a cure for this?
Best regards,
Hi. It looks you are using wrong chromosome (it doesn't match the weights stored). The chromosome represents the architecture and the weights need to have fixed architecture.
In the nascaps, it never happened to me