Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Google-Intro-Computer-Vision-Model-TensorFlow

Practice creating a computer vision model that can recognize items of clothing with TensorFlow library.

Fashion MNIST Classifier

A TensorFlow/Keras model that classifies 28x28 grayscale images of clothing into 10 categories.

Overview

This project trains a neural network on the Fashion MNIST dataset to recognize different types of clothing such as shirts, shoes, and bags. The model takes image data as input, preprocesses it, and predicts the most likely category.

Run in Google Colab

Please open in Google Colab and make a copy for yourself.
Chau.Google.ComputerVision.TensorFlow.ipynb

Writing

I also wrote about what I learned from this project, including insights on data preparation and model design:
Read the full post on Substack

A sample image

An image of a shirt in pixel format

What the Notebook Does

  • Loads the Fashion MNIST dataset
  • Normalizes pixel values
  • Flattens 28x28 images into 784-length vectors
  • Builds a neural network using dense layers
  • Trains the model
  • Evaluates accuracy
  • Uses callbacks to stop training early

Results

  • Training highest accuracy: ~90% (91.51%)
  • Predicts clothing categories labeled from 0 to 9
  1. T-shirt/top
  2. Trouser
  3. Pullover
  4. Dress
  5. Coat
  6. Sandal
  7. Shirt
  8. Sneaker
  9. Bag
  10. Ankle boot

Concepts Covered

  • Neural networks (Dense layers)
  • Data preprocessing and normalization
  • Flattening image data (28x28 → 784)
  • Model evaluation
  • Callbacks (early stopping)

How to Use

  1. Click the "Open in Colab" link above. Make a copy for yourself.
  2. Run all cells (Runtime → Run all)
  3. View training progress and results
  4. Please feel free to modify parameters or model structure if desired

Project Structure

  • notebook.ipynb — main Colab notebook containing all code

Future Improvements

  • Replace dense network with a Convolutional Neural Network (CNN)

Notes

This project is intended as a learning exercise for me to understand the basics of deep learning, model training, and data preprocessing using TensorFlow and Keras.
Please visit Google Codelabs for more resources. Link: https://codelabs.developers.google.com/

About

A TensorFlow/Keras model for classifying Fashion MNIST images into 10 clothing categories. Built as a learning project to explore neural networks and image preprocessing.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages