Creating a DenseNet model