FashionClassifier is a Python project aimed at classifying different types of clothing items into various categories such as t-shirts, blazers, dresses, and more. It utilizes machine learning algorithms to analyze and recognize patterns in images of clothing, allowing for accurate classification. This project provides a convenient solution for automating the categorization of clothing items, which can be useful in various applications such as e-commerce platforms, fashion analysis, and inventory management.
Before running FashionClassifier, make sure you have the following requirements:
- Python 3.9 or higher
- OpenCV (cv2)
You can install OpenCV using pip:
pip install opencv-pythonIf you're using Google Colab, you can install OpenCV using the following command in a code cell:
!pip install opencv-pythonTo get started with FashionClassifier, follow these steps:
git clone https://github.com/jacquesbilombe/FashionClassifier-
For Windows:
1- Open PowerShell (Windows + x)
2- Install Chocolatey
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))3- Verify Chocolatey install
choco4- Make install
choco install make-
For Linux:
1- Make install
sudo apt install makeIf you don't have Anaconda, see how to install it here https://docs.anaconda.com/anaconda/install/linux/
Go to FashionClassifier/ folder and run the following code in Anaconda Prompt to create and install all pre-requirements
cd FashionClassifier
make setupFinally, activate the conda environment
conda activate Toruspython main.py FLAG "train_folder" "teste_folder" "images_label_and_id.csv"Terminal Example:
python main.py 0 "/compressed_images" "/original_images" "images.csv"Obs:
- FLAG: 0 to use the trained ML model and 1 to train the ML model again.
- train_folder && teste_folder && images_label_and_id: if the line is empty "", the code will use the project dataset
- Token for automation.