Script for generating sparse filters layer-wise greedy networks