A full-stack web application that uses a machine learning model, trained with the Fashion MNIST dataset to classify uploaded images of clothing into predefined categories. The application displays the most likely classification along with the top 5 classifications and their associated probabilities.
- Upload an image of clothing to the webpage.
- The machine learning model predicts the image's clothing category.
- Displays the top prediction with its confidence score.
- Lists the top 5 classifications with their respective probabilities.
- Machine Learning Model: Built and trained using TensorFlow in Google Colab.
- Server: Flask, handling image uploads, preprocessing, interacting with ML model to serve predictions.
- Framework: Next.js
- Language: TypeScript
- Styling: Tailwind
- Image Upload: Users upload an image of clothing via the web interface.
- Preprocessing:
- The image is sent to the Flask server.
- The machine learning model processes the image and predicts its classification.
- Probabilities for all categories are calculated.
- Results:
- The server responds with the top classification and its confidence score.
- It also includes the top 5 classifications and their probabilities.
- Display:
- The frontend shows the uploaded image, top prediction, and a list of the top 5 predictions.
- Python (3.8 or later)
- Node.js (16.x or later)
- npm or yarn
- Clone the repository:
git clone https://github.com/johnsh9656/ClothingClassification.git
- Follow the instructions in ./backend to set up the backend
- Follow the instructions in ./frontend to set up the frontend
- Visit http://localhost:3000