CNN Image Classification Pipeline

Build a complete convolutional neural network pipeline for image classification tasks.

6/11/2026
Prompt
Create a complete CNN-based image classification system.

Project details:
- Number of classes: [N_CLASSES]
- Image dimensions: [HEIGHT x WIDTH x CHANNELS]
- Dataset size: [APPROXIMATE NUMBER OF IMAGES]
- Framework preference: [PyTorch/TensorFlow/Keras]

Deliverables:
1. Data loading with augmentation (rotation, flip, crop, color jitter)
2. CNN architecture with:
   - Convolutional layers with batch normalization
   - Pooling strategies
   - Dropout regularization
   - Global average pooling
3. Transfer learning option with pretrained backbones
4. Training with mixed precision
5. Learning rate finder
6. Confusion matrix and classification report
7. Grad-CAM visualization for interpretability
8. Model export for deployment

Handle class imbalance with weighted loss or oversampling.

Or press ⌘C to copy

Variables (2)

Replace these placeholders with your own content before using the prompt.

[N_CLASSES][APPROXIMATE NUMBER OF IMAGES]

Ready to use?

Copy and paste into your favorite AI tool

Works With

Test this prompt live

Try it in our AI Playground with Claude

Open Playground

Explore more Coding prompts

Browse Coding

Command Palette

Search for a command to run...