Amanuel-Ni commited on
Commit
f754cd2
·
verified ·
1 Parent(s): 53a12c2

Update data_viz.py

Browse files
Files changed (1) hide show
  1. data_viz.py +17 -15
data_viz.py CHANGED
@@ -99,19 +99,21 @@ def data_visualization(model_choice):
99
 
100
  elif model_choice == "VGG16":
101
  st.markdown("""
102
- #### 📦 VGG16 Model Summary
103
-
104
- VGG16 is a deep convolutional neural network known for its uniform architecture of `3x3` conv filters and `2x2` max-pooling layers. It ends with 3 fully connected layers.
105
-
106
- Since it's quite large (138 million parameters), we’re showing a high-level overview here:
107
-
108
- | Component | Description |
109
- |---------------------|------------------------------------|
110
- | Convolutional Blocks| 13 Conv layers + ReLU + MaxPooling |
111
- | Fully Connected | FC1 → FC2 → Output layer (6 units) |
112
- | Pretrained Base | Yes (ImageNet, fine-tuned) |
113
-
114
- **Total Parameters**: ~`138 million`
115
- **Trainable Parameters**: ~`138 million`
116
- **Estimated Model Size**: ~`500+ MB`
117
  """)
 
 
 
 
99
 
100
  elif model_choice == "VGG16":
101
  st.markdown("""
102
+ #### 🏗️ VGG16 Architecture (Fine-Tuned)
103
+
104
+ | Layer | Input Shape | Output Shape | Params | Trainable |
105
+ |------------------------------|---------------------|---------------------|--------------|-----------|
106
+ | Features (13 conv layers) | [32, 3, 224, 224] | [32, 512, 7, 7] | ~7.9M | ❌ |
107
+ | AdaptiveAvgPool2d | [32, 512, 7, 7] | [32, 512, 7, 7] | 0 | ❌ |
108
+ | Linear (fc1) | [32, 25088] | [32, 4096] | 102,764,544 | ✅ |
109
+ | Linear (fc2) | [32, 4096] | [32, 1024] | 4,195,328 | ✅ |
110
+ | Linear (fc3) | [32, 1024] | [32, 6] | 6,150 | |
111
+
112
+ **Total Parameters**: `116,186,502`
113
+ **Trainable Parameters**: `106,966,022`
114
+ **Non-trainable Parameters**: `9,220,480`
115
+ **Estimated Model Size**: `~2.4 GB`
 
116
  """)
117
+
118
+ else:
119
+ st.warning("⚠️ Model summary not available.")