scripts to generate initial weights for SPN from CNN