Spaces:
Sleeping
Download README.md from maryzhang/Traffic_Light_Classifier: direct link, hf CLI and curl.
- Browser
- Download file 3.06 kB
-
https://huggingface.co/spaces/maryzhang/Traffic_Light_Classifier/resolve/main/README.md
- Command line
-
hf download hf://spaces/maryzhang/Traffic_Light_Classifier/README.md
-
curl -L -o README.md https://huggingface.co/spaces/maryzhang/Traffic_Light_Classifier/resolve/main/README.md
A newer version of the Gradio SDK is available: 6.31.0
title: Traffice Light
emoji: π₯
colorFrom: indigo
colorTo: indigo
sdk: gradio
sdk_version: 5.47.2
app_file: app.py
pinned: false
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
π¦ Traffic Sign Identifier
An interactive image classification app for identifying traffic signs using a pretrained AutoGluon MultiModalPredictor model hosted on Hugging Face.
The app provides predictions with confidence scores, a clean Gradio interface, and user-friendly visualizations.
β¨ Features
Traffic Sign Classification
Upload or capture an image of a traffic sign and receive predictions.Model Integration
Usescassieli226/sign-identification-automltrained with AutoGluon, deployed via Hugging Face Hub.Configurable Inference
- Resize size: adjust input resolution (64β512 px).
- Top-k predictions: see multiple likely classes.
- Probability threshold: filter low-confidence results.
Interactive Interface
Built with Gradio for intuitive user experience, including drag-and-drop upload and webcam capture.Styled Output
Results are presented with clear visuals: top prediction, confidence %, and a ranked list of alternatives.
π Project Structure
app.pyβ main application with Gradio Blocks interface.autogluon_predictor_dir.zipβ packaged AutoGluon model checkpoint (downloaded from Hugging Face Hub).requirements.txtβ dependencies for running locally or in a Hugging Face Space.README.mdβ this documentation.
π Running the App
1. Local Setup
Clone the repository and install dependencies:
pip install -r requirements.txt
π Example Usage
- Upload an image of a traffic sign (or use webcam capture).
- Adjust resize size, top-k predictions, or probability threshold if desired.
- Click Predict.
Youβll see:
- Original image preview.
- Top predicted sign + confidence score.
- Ranked list of additional predictions with probabilities.
π Citations & References
- AutoGluon: Erickson et al., AutoGluon: AutoML Toolkit for Deep Learning, GitHub.
- Gradio: Abid et al., Gradio: Hassle-Free Sharing and Testing of ML Models, gradio.app.
- Hugging Face Hub for model hosting.
π License
This project is distributed under the MIT License. See LICENSE for details.
π Acknowledgments
- Model trained by
cassieli226and shared via Hugging Face Hub. - App adapted and deployed by
maryzhang. - Special thanks to classmates and instructors for feedback.
π€ AI Usage
This project made use of ChatGPT (OpenAI) during development to:
- Refactor and debug the Gradio Blocks interface.
- Improve prediction display styling with HTML/CSS.
- Draft and polish this README for clarity and completeness.