Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CNN Image Classification

This script performs image classification using Convolutional Neural Networks (CNN). It predicts the images in the ./input dataset and moves them to output directories classified by their predicted classes.

Environment Setup

The following libraries are required to run the script:

  • tqdm
  • torch
  • torchvision
  • PIL

You can install the required libraries by running the following command:

pip install -r ./environ/requirements.txt

Data Preparation

Please place the input images you want to classify in the ./input.

Usage

To run the script, use the following command:

python cnn_eval.py

It will utilize the available GPU if present; otherwise, it will use the CPU.

Output

The resulting images, classified into their respective classes, will be saved in the ./output/<class_name>

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages