A Fashion Product Recommendation System built using deep learning and computer vision techniques. This app uses a pre-trained ResNet50 model to extract image features and recommends similar fashion items based on the input image. The project is deployed using Streamlit, providing an interactive interface for users to find similar fashion products easily.
- Upload an image to find visually similar fashion products.
- Displays information about the recommended items, including gender, article type, and season.
- Utilizes a pre-trained ResNet50 model for feature extraction.
- Uses Nearest Neighbors algorithm for similarity search.
Check out the live demo of the Kaggle: Fashion Product Recommendation System
-
Clone the repository:
git clone https://github.com/alihassanml/Fashion-Product-Recomended-System.git cd Fashion-Product-Recomended-System
-
Install required dependencies: Make sure you have Python 3.8 or above installed. Install the dependencies using pip:
pip install -r requirements.txt
-
Download Required Files:
- Place
styles.csv
in the root directory. - Ensure
feature_data.pkl
andfile_names.pkl
are available in the root directory. - Place all images in the
./images/
folder.
- Place
-
Run the Streamlit app:
streamlit run app.py
-
Upload an Image:
- Click on "Choose an image..." to upload an image of a fashion product.
- The app will display similar products with relevant metadata.
Fashion-Product-Recomended-System/
│
├── app.py # Main Streamlit app script
├── styles.csv # Metadata CSV file for fashion products
├── feature_data.pkl # Pickle file containing extracted image features
├── file_names.pkl # Pickle file containing image filenames
├── images/ # Directory containing all fashion product images
├── requirements.txt # List of required dependencies
└── README.md # Project documentation
- Python 3.8+
- Streamlit
- TensorFlow
- Pandas
- Numpy
- Scikit-learn
- Matplotlib
You can install the dependencies using the command:
pip install -r requirements.txt
- Feature Extraction: Uses a pre-trained ResNet50 model to extract features from the uploaded image.
- Similarity Search: The app finds the closest matches using the Nearest Neighbors algorithm.
- Display Results: Similar images are displayed along with their metadata like gender, article type, and season.
Contributions are welcome! Please follow these steps:
- Fork the repository.
- Create your feature branch (
git checkout -b feature/AmazingFeature
). - Commit your changes (
git commit -m 'Add some AmazingFeature'
). - Push to the branch (
git push origin feature/AmazingFeature
). - Open a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
Ali Hassan
GitHub: alihassanml
Project Link: Fashion Product Recommendation System