This repo is a complete starter to build, evaluate, and demo an image-classification system in Python + TensorFlow/Keras. It follows the bootcamp flow: preprocess → train basic CNN → evaluate → transfer learning → fine-tune → demo → publish.
- Upload this zip to Colab and unzip:
!unzip vision_ai_cifar10_project.zip -d /content/
%cd /content/vision_ai_cifar10_project- (Optional) Preprocess & cache data:
!python src/preprocess.py- Train a basic CNN (saves model & plots):
!python src/train_cnn.py- Evaluate saved model (confusion matrix + report):
!python src/evaluate.py --model models/basic_cnn.h5 --prefix basic_cnn- Transfer learning (MobileNetV2):
!python src/train_transfer.py
!python src/evaluate.py --model models/mobilenetv2_cifar10.h5 --prefix mobilenetv2- Single-image inference:
# Replace with your image path
!python src/infer.py --model models/mobilenetv2_cifar10.h5 --image sample.jpgvision_ai_cifar10_project/
├─ data/ # cached dataset (created automatically)
├─ docs/ # slides, LinkedIn post, demo script templates
├─ models/ # trained .h5 models
├─ outputs/ # plots, confusion matrices, reports
└─ src/ # all Python code
- Default dataset: CIFAR-10 (built into Keras). You can swap to Cats vs Dogs via
tensorflow_datasetswith small changes. - Training uses GPU if available. In Colab: Runtime → Change runtime type → GPU.
- For fast submission, you can reduce epochs in the training scripts.
Good luck! 🚀