notes - Copy
notes - Copy
layers:
2. Conv Layer 2
- Convolution: 64 filters, 3x3 kernel, ReLU activation
- Output: Feature map
3. Pooling Layer 1
- Max Pooling: 2x2
- Reduces spatial dimensions
4. Conv Layer 3
- Convolution: 128 filters, 3x3 kernel, ReLU activation
5. Pooling Layer 2
- Max Pooling: 2x2
- Reduces spatial dimensions
7. Output Layer
- Fully Connected (FC): Softmax activation (for classification tasks)
Summary of Layers
| Layer No. | Type | Details
|-----------|----------------|--------------------------------|
| 1 | Conv2D | 32 filters, 3x3, ReLU |
| 2 | Conv2D | 64 filters, 3x3, ReLU |
| 3 | MaxPooling2D | 2x2 |
| 4 | Conv2D | 128 filters, 3x3, ReLU |
| 5 | MaxPooling2D | 2x2 |
| 6 | Fully Connected | 128 neurons, ReLU |
| 7 | Output Layer | Softmax (for classification) |
This CNN structure is commonly used for image classification tasks like MNIST,
CIFAR-10, or ImageNet. You can modify the number of filters or layers based on the
dataset complexity.
Streamlit & UI
3. streamlit → Creates interactive web apps for machine learning and data
visualization.
4. streamlit_option_menu → Adds navigation menus in Streamlit apps.
Data Visualization
7. matplotlib (plt) → Creates charts and plots.
8. seaborn (sns) → Advanced statistical plots, built on top of matplotlib.
Image Processing
9. PIL (Image) → Opens, edits, and processes images.
10. tensorflow.keras.preprocessing.image → Prepares images for deep learning
models.