Git Product home page Git Product logo

real-time-images-detection-and-hashtags-generation-for-tweets's Introduction

Real-time-images-detection-and-hashtags-generation-for-tweets

In this project, we use Pyspark and Pytorch to build a stream processing pipeline to get images from Twitter API and do real time images detection and hashtags generation for tweets.

Platform

We used GCP platform to train all models with NVIDIA Tesla V100.
In order to combine Pyspark and Pytorch, we implmented our system on AWS with platform of Databricks. It provides a enviroment where we can run both Pyspark and Pytorch.

Codes

Model training

  • collect_images.ipynb Collect images from Twitter API for semi-supervised learning.
  • train_model.ipynb Train ResNet50

Stream Processing

  • sender.ipynb Create TCP connection, request images with specific hashtags from Twitter API.
  • spark_receiver.ipynb Receive DStream from sender and process data to predict the label. At last, it will restore 4 images per window as one npy file for displaying.
  • display.ipynb Display the result.
    You should run sender and spark_receiver first. Once they get images and start processing, you should run display. It can display images by reading npy files in the folder. WARNING: It will delete all npy files to do real time display. So if you wan to store all results, please do not run this code.

Demo

Iterative Pruning Result Iterative Pruning Result

Implement details

Please check all implement details and analysis is our report

real-time-images-detection-and-hashtags-generation-for-tweets's People

Contributors

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