Skip to content

This repo is made public for my article in Analytics Vidhya. Using deep learning and picture classification, we created a working prototype for fashionistas in detecting African Attires. The objective is to carry out a comprehensive machine-learning demo utilizing a scenario of a real-world issue.

Notifications You must be signed in to change notification settings

inuwamobarak/african_attire_detector

Repository files navigation

Deep learning for Fashionistas: African Attire Detection

GitHub repo size GitHub stars GitHub forks GitHub

This repository contains a deep learning project focused on African attire detection. The project aims to develop a model that can classify eight local African attires, primarily from countries like Nigeria and South Africa. By preserving and utilizing this model, it becomes easier for foreigners and future generations to identify and appreciate the cultural artifacts of African tribes.

medium-shot-men-playing-drums

Table of Contents

Problem Statement

The preservation of African cultures is crucial, especially with the encroachment of civilization and technology. This project aims to leverage AI to combat culture loss and preserve African heritages. By developing deep learning algorithms and smart systems like chatbots, image identifiers, and text-to-speech, we can ensure the preservation and accessibility of African cultures.

Approach

The project utilizes a deep learning algorithm with TensorFlow as the backend framework. The development environment is Colab, and the accuracy of the model is open to further improvement. The goal is to train the model to classify eight African attires accurately.

Dataset Description

The dataset consists of images of African attires gathered from the internet using a web scraping Google Chrome extension. The dataset contains the following details:

  • 8 classes representing different African tribes:
    • Adire (from Nigeria)
    • Idgo (from Nigeria)
    • Idoma (from Nigeria)
    • Igala (from Nigeria)
    • Tiv (from Nigeria)
    • Tswana-Shweshwe (from South Africa)
    • Xhosa-South Africa (from South Africa)
    • Zulu (from South Africa)
  • Training set: 9784 images belonging to the 8 classes
  • Validation set: 2579 images belonging to the 8 classes
  • Total: 12,363 images

Installation

To use the code in this repository, follow these steps:

  1. Clone the repository: git clone https://github.com/your-username/african-attire-detection.git
  2. Navigate to the project directory: cd african-attire-detection
  3. Install the required dependencies: pip install -r requirements.txt

Usage

  1. Ensure you have installed the required dependencies.
  2. Prepare your dataset and ensure it follows the specified format.
  3. Modify the code to load and preprocess your dataset, adjust hyperparameters, etc.
  4. Train the deep learning model using the provided scripts or adapt them to your specific requirements.
  5. Evaluate the model's performance and make predictions on new images.
  6. Experiment with different architectures, techniques, or augmentations to improve the model's accuracy.

Technologies

The project is implemented using the following technologies and libraries:

  • TensorFlow
  • Python
  • Colab (Jupyter Notebook)
  • Deep Learning
  • Image Classification
  • Convolutional Neural Networks (CNN)
  • Computer Vision

Contributing

Contributions to this project are welcome. To contribute, follow these steps:

  1. Fork the repository.
  2. Create a new branch: git checkout -b feature/your-feature
  3. Make your changes and commit them: git commit -m 'Add some feature'
  4. Push to the branch: git push origin feature/your-feature
  5. Submit a pull request.

License

This project is licensed under the MIT License.

References

Feel free to follow me and ask questions:

About

This repo is made public for my article in Analytics Vidhya. Using deep learning and picture classification, we created a working prototype for fashionistas in detecting African Attires. The objective is to carry out a comprehensive machine-learning demo utilizing a scenario of a real-world issue.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published