Image Classifier is a deep learning-based project designed to classify images into predefined categories. This project uses Convolutional Neural Networks (CNNs) to identify and classify images based on their visual features. The classifier is implemented in Python, utilizing the PyTorch library for building and training the deep learning model.
With Image Classifier is possible to:
- Use existing models to classify images
- Train a new model, simply knowing the categories of the model
- Clone the repository:
git clone https://github.com/SalerSimo/Image-Classifier.git cd Image-Classifier - Install the required Python packages:
pip install -r requirements.txt
-
Open file "launch.cmd" or write in the command line:
python src/image_classifier.py
-
Select if use an existing model or train a new model:
- Use model:
- Select the model
- Train new model:
-
Insert categories
-
Insert number of images to download for each category
The new model will be saved into models folder
-
All the models must have the following name format:
CATEGORY-1_CATEGORY-2_..._CATEGORY-N.pthwhere CATEGORY-1 ... CATEGORY-N are the categories the image will be classified into.
- Use model:
-
Select the image to classify.

