This project aims to develop an outfit recommendation system using deep learning techniques. The system will take an image from the user as input and suggest a suitable outfit for them. The model will learn to recognize patterns and features in the images, allowing it to make accurate recommendations.
The model will be trained on a dataset of images.
The dataset can be downloaded from Kaggle:
https://www.kaggle.com/datasets/paramaggarwal/fashion-product-images-dataset
Or the smaller dataset:
https://www.kaggle.com/datasets/paramaggarwal/fashion-product-images-small
The model will be implemented using machine learning and deep learning techniques such as convolutional neural networks (CNNs). The CNNs will be used to extract features from the images and the final layers will be trained for the task of outfit recommendation.
The system can be used by using this system, users will be able to upload a photo of a clothing and receive outfit suggestions.
- Python 3.x
- TensorFlow 2.x or PyTorch
- OpenCV
- Numpy
- Pandas
- Glob
To install the necessary dependencies, run the following command:
pip install -r requirements.txt
First be sure to have your image in .jpg format ready.
Convert it online with the following link :
https://convertio.co/jpeg-jpg/
Before running the code, please make sure you have fulfilled the requirements.
- Anaconda installed and Anaconda prompt ready
You can download Anaconda here :
https://www.anaconda.com/
- Additional Python packages
To do so, run the following code in Anaconda prompt:
pip install streamlit webcolors
(Please be informed that this does take awhile to complete)
Please follow these step by step otherwise it wont work the way its intended to.
-
Create a dummy folder on your desktop
-
Click the folder and left click to git bash into the folder
"Git Bash here" -
Clone this repository by running this code:
git clone https://github.com/Lizoug/Outfit-Recommender.git
-
You can now close the bash terminal and open Anaconda prompt
-
Enter the frontend directory by running this code :
cd Desktop/dummy_folder_name/Outfit-Recommender
(Remember to replace dummy_folder_name with your actual dummy folder name) -
If you haven't already, install requirements with the following code :
pip install -r requirements.txt
(This will take awhile and you may see some errors but it should still work fine) -
Enter the code directory with the following code :
cd code
-
Run the code :
streamlit run main.py
(The website should be launched from your browser with the given IP Address)
Please make sure you have a dataset before running the training and evaluation command.
Feel free to open a pull request or an issue if you have any suggestions for improvements.
This project is licensed under the terms of the MIT license.