Code Monkey home page Code Monkey logo

image2hashtag's Introduction

image2hashtag

Generate Images to Hashtags using CNNs

Creating the Training and Validation Datasets

The notebook dataset_management.ipynb describes the steps to generate the datasets.

It makes use of the fast.ai api to store and verify the images, and it looks for the download links in folder:

  • url_files

each class has it's own file, it uses the suffix _valid to indicate the image urls for the validation dataset,

Example

class: autumn

  • url_files/autumn.txt
  • url_files/autumn_valid.txt

Training the model

The notebook model_training.ipynb describes the functions and steps to training a model with a custom set of classes.

  • Remember that it requires that the Datasets to be already generated in the correct structure.

Evaluating the model

The notebook predic_classes.ipynb use a generated model and evaluate individual images.

Deployment application

The file app.py has a Flask application that exposes the /image endpoint to process model and generate the probabilites per class.

Web Application

In the angular-app folder can be found an angular application that can upload images and call the endpoint for the model processing.

image2hashtag's People

Contributors

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