
Traffic Sign Recognition
Classifies 43 German traffic signs with PyTorch CNN/ResNet18 and FastAPI-based inference.
Overview
A deep-learning image classification project for recognizing German road signs from the GTSRB dataset. Built with PyTorch, it compares a custom CNN baseline with ResNet18 transfer learning and follows a structured training, validation, and test-evaluation workflow. The project includes saved model metrics, visualization of results, a FastAPI endpoint for image-based inference, and packaging through Docker and GitHub Actions. It connects experimental computer-vision modeling with an application-oriented inference service, demonstrating both model development and the engineering required to serve predictions.
Technical details
The code handles 43 GTSRB traffic-sign categories and offers both a purpose-built CNN and a pretrained ResNet18 with its classification head replaced for the task. Training uses cross-entropy loss, AdamW optimization, cosine-annealed learning rates, and a held-out validation subset; the best checkpoint is selected by validation macro F1 rather than training accuracy. Evaluation computes test accuracy, macro and weighted F1, and per-class classification reports, while the best model checkpoint is available to the FastAPI inference route and container packaging.

