Skip to content

modzy/basic-image-classification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Open Source Basic Image Classification Model



Modzy



This repository contains a basic image classification model implemented with the PyTorch framework.


GitHub contributors GitHub last commit GitHub Release Date


Packaged Basic Image Classification Repository | Python Model Template Repository | Documentation




Introduction

This repository contains a basic image classification model implemented in PyTorch.

This model is built with a resnet 101 architecture and trained on the ImageNet dataset.

For more information on the implementation of this model, visit PyTorch’s Torchvision Models page.

Requirements

To run the main.py script:

Installation

Usage

Once your environment is set up and the requirements are installed,

Run the download_weights.py script to download the weights fromt the PyTorch Torchvision models library:

python download_weights.py

Run the main.py script and add the image_name and labels arguments:

python main.py dog.jpg imagenet_classes.txt

The imagenet_classes.txt holds all classes for ImageNet, and the ./data directory contains a sample image.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages