Giter Club home page Giter Club logo

english-vs-arabic-image-text-classification's Introduction

English-vs-Arabic-image-text-classification

Overview

This repository hosts a project that utilizes the LeVIT (Lightweight Vision Transformer) model for classifying images based on the language of the text they contain. Specifically, the model is trained to distinguish between images containing Arabic and English text.

Project Description

The project demonstrates the application of the LeVIT method in the domain of language recognition within images. LeVIT is a transformer-based neural network known for its efficiency in image-related tasks. In this project, it is adeptly employed to classify images as either containing Arabic or English text. After training and testing the model, it is transformed into tflite format to be deployed on edge devices.

Key Features

  • LeVIT Implementation: Detailed implementation of the LeVIT model tailored for the specific task of language classification in images.

  • Custom Dataset Handling: A custom dataset class, LangDataset, is implemented for processing and labeling images containing Arabic and English text.

  • Model Training and Evaluation: Comprehensive steps for training the LeVIT model on the language dataset and evaluating its performance.

Installation

To set up this project:

  1. Ensure you have Python 3.10 and PyTorch 2.0.1 installed.
  2. Install additional dependencies such as Torchvision and PIL.
  3. Clone this repository to your local machine.

Usage

Follow these steps to run the project:

  1. Navigate to the cloned repository.
  2. Install the required dependencies as listed in the notebook.
  3. Execute the Jupyter Notebook to train the LeVIT model and test it on your dataset.
  4. Convert the trained model to tflite format

english-vs-arabic-image-text-classification's People

Contributors

mohamedhamdy28 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.