cnn and nin train scripts