Skip to content

makeai-org/cat-vs-dog-classifier-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Cat vs Dog Classifier Demo

A cat vs dog classifier demo API that uses FastAPI for the python backend and PyTorch for the machine learning.

It accepts a random number 1-1000 for a random image in the testing data, or a custom image input encoded as a base64 string.

It returns the classification of cat or dog for the image.

The current model has a ~95% test accuracy of correctly predicting an image as a cat or a dog.

Pip installs needed: pip install fastapi "uvicorn[standard]" gunicorn torch torchvision Pillow

Run command: uvicorn main:app --reload

To test the API, use localhost:8000/docs

Created September 10, 2023

About

A Cat vs Dog Classifier Demo API that uses PyTorch

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages