Group 7
Group 7
3.4.3 Model Training: We fed the data into the models, fine-tuning DenseNet121
their parameters until they exhibited accurate image classification. Layer Output Shape Param#
densenet121(Functional) (None, 16, 16, 1024) 7,037,504
3.4.4 Model Assessment: To gauge performance, we evaluated the Flatten_1(Flatten) (None, 262,144) 0
models using a separate dataset, measuring metrics like accuracy, Dense_3(Dense) (None, 50) 13,107,250
Dense_4(Dense) (None, 20) 1,020
precision, and recall. Dense_5(Dense) (None, 6) 126
Total params: 20,145,900
3.4.5 Consensus Building: Utilizing predictions from each model, Trainable params: 13,108,396
Non-trainable params: 7,037,504
we ranked and collectively decided on the most frequent prediction
as the final outcome. Inception v3
Layer Output Shape Param#
3.5 Model Architecture Inception_v3(Functional) (None, 14, 14, 2048) 21,802,784
flatten(Flatten) (None, 401,408) 0
In Table I, the erecting and training of a CNN using the DenseNet121, dense(Dense) (None, 50) 20,070,450
InceptionV3, and ResNet50V2 architectures as base models for im- dense_1(Dense) (None, 20) 1,020
dense_2(Dense) (None, 6) 126
age classification, employing transfer learning. In terms of this, the
Total params: 41,874,380
pre-trained models are loaded with their layers frozen to preserve Trainable params: 26,215,596
learned features from the ImageNet dataset. CNN layers are added Non-trainable params: 21,802,784