OpenViSTAI · Agents · Blockchain · Crypto
Menu
AI Models

Car Recognition

Car Recognition is an open-source Python computer-vision project that fine-tunes ResNet-152 on Stanford’s Cars Dataset to classify images into 196 car categories. It includes scripts for dataset preprocessing, training, validation analysis and testing, plus a demo that prints a predicted class and probability for an image.

Independent OpenViST project profile, based on linked sources.

Car Recognition — Learning from a concrete transfer-learning workflow based on ResNet-152
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use it when you want a documented Python workflow for experimenting with car-image classification on Stanford’s 196-class dataset, or a demo that predicts a car class from an image.

Who it is for

  • Developers exploring image classification and car-recognition models.
  • Practitioners prototyping vehicle-image categorization with the Stanford Cars Dataset.

Documented uses

  • Classify an image into one of the dataset’s 196 car classes using the demo.
  • Preprocess the dataset and train a fine-tuned ResNet-152 model.
  • Analyze validation results and test predictions using the included scripts.
Before you choose

Requirements & limits

The repository is public and lists an MIT license.

  • The documented model and dataset are specific to 196 Stanford Cars categories.
  • Training requires the dataset, an ImageNet-pretrained ResNet-152 model and the listed Python dependencies.
  • The repository reports 88.70% validation accuracy and 88.88% test accuracy for its workflow.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Run the image-classification demo

Use the repository’s documented demo to obtain a predicted car class and probability for an image.

Before you start

  • Python and the repository dependencies: NumPy, TensorFlow, Keras and OpenCV.
  • The repository’s pretrained model file placed in the models folder.
  • An image file to classify.

Steps

  1. Download the pretrained model linked by the repository into the models folder.

  2. Run the command below, replacing the placeholder with an image path.

    Documented command
    python demo.py --i [image_path]

Expected outcome

The demo prints a class name and probability; without an image argument, the README says it uses a sample image.

Guide limitations

  • The documented classes come from the 196-category Stanford Cars Dataset.
Source-based practical guide

Prepare data and train the classifier

Follow the repository’s documented preprocessing and training stages for the Stanford Cars Dataset.

Before you start

  • The Stanford Cars Dataset, described as 16,185 images in 196 classes.
  • An ImageNet-pretrained ResNet-152 model in the models folder.
  • NumPy, TensorFlow, Keras and OpenCV.

Steps

  1. Obtain the Cars Dataset files and devkit using the links and download commands in the repository README.

  2. Run the command below to split the training images into training and validation sets.

    Documented command
    python pre_process.py
  3. Run the command below to train the model.

    Documented command
    python train.py

Expected outcome

The documented workflow creates preprocessed training and validation data and starts model training.

Guide limitations

  • The README describes an 80:20 split of 8,144 training images into 6,515 training and 1,629 validation images.
  • The project’s reported validation and test accuracy figures describe its own documented results, not a guaranteed outcome from rerunning the workflow.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
17 November 2026
Original website title
foamliu/Car-Recognition · Official homepage title · retained in its source language