Giter VIP home page Giter VIP logo

imageandtextanalysis's Introduction


Logo

Analysis of Images and Text

Image and text analysis performed using various classification and anomaly detection techniques.
Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. License
  5. Contact

About The Project

The project carried out for the course "Machine and Deep Learning," consists of analyzing two types of datasets: images and text, using different machine learning algorithms.

Structure

  • models_images: Folder with pre-trained models for images.
  • models_text: Folder with pre-trained models for texts.
  • notebook: Folder with notebooks used in the development of the project.
  • accuracy_images_script.py: script to compute accuracy on custom images dataset with the pretrained models.
  • accuracy_text_script.py: script to compute accuracy on custom texts dataset with the pretrained models

Built With

Getting Started

To get a local copy up and running follow these simple example steps.

Prerequisites

Install the following libraries.

  • requirements.txt
      pip install -r requirements.txt

Installation

  1. Clone the repo
    git clone https://github.com/GiuseTripodi/Image_Text_Analysis.git

Usage

Run one of the two scripts:

  • accuracy_images_script.py: If you want to calculate accuracy on images with pretrained models.
  • accuracy_text_script.py: If you want to calculate accuracy on text with pretrained models.

Information about script.

  usage: accuracy_images_script.py [-h] [-s SCALE] [--version] images_path models_path

  positional arguments:
    images_path           path of the directory with all the images
    models_path           path of the directory with all the images

  optional arguments:
    -h, --help            show this help message and exit
    -s SCALE, --scale SCALE
                      Percentage of the data to get, is a value between (0,1)
    --version             show program's version number and exit

To run the script:

  python <script> [-s] <images_path> <models_path>

Example:

   python accuracy_images_script.py --scale 0.05  "/home/Dataset/images" "/home/models_images"

License

Distributed under the MIT License. See LICENSE.txt for more information.

Contact

Giuseppe Tripodi - @giuseppetripod3 - [email protected] - LinkedIn

imageandtextanalysis's People

Contributors

giusetripodi 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.