Code Monkey home page Code Monkey logo

machinelearningapps's Introduction

Machine Learning Apps

This project aims to serve as the frontend user interface, to run various machine learning models like captiongeneration, cartoonization and textsummarization. The actual deployment of the models is on another service, and this website connects to the service via API protocols. The reason behind separation of the models and the frontend was taken, so as to ease the testing of the frontend, as well as make it easier to add support for newer models later in the future.

Requirements

To run the service, setup the API service, and edit it's home url in the website_data file. Then, create a virtual environment for the website, and install the requirements by running the following command.:

pip install -r requirements.txt

Usage

Change the working directory to project Then, export the following environment variables

export FLASK_APP=application.py
export FLASK_DEBUG=1 # only in case of debugging else set it to 0
export EMAIL_ADDRESS=""
export PASSWORD=""
  • EMAIL_ADDRESS should be the actual Gmail address from which the email will be sent and PASSWORD will be the password of the corresponding email address.

  • By default the home address is the localhost If we are using an online webserver, then we'd have to replace the localhost with the corresponding home address in the website_data.py file

  • To use the email sender code, we need to allow DisplayUnlockCaptcha and less secure apps

Finally, run the project using:

flask run

Test

  • Create an account and create a job
  • Upload a single image per job
  • The default examples for each task types are shown below
    1. captiongeneration
    2. cartoonization
    3. textsummarization
S. No. Input Result
1 input_image man in yellow kayak is paddling through the water
2 input_image cartoonized_image
3 We present BART, a denoising autoencoder for pretraining sequence-to-sequence models. BART is trained by (1) corrupting text with an arbitrary noising function, and (2) learning a model to reconstruct the original text. It uses a standard Tranformer-based neural machine translation architecture which, despite its simplicity, can be seen as generalizing BERT (due to the bidirectional encoder), GPT (with the left-to-right decoder), and many other more recent pretraining schemes. We evaluate a number of noising approaches, finding the best performance by both randomly shuffling the order of the original sentences and using a novel in-filling scheme, where spans of text are replaced with a single mask token. BART is particularly effective when fine tuned for text generation but also works well for comprehension tasks. It matches the performance of RoBERTa with comparable training resources on GLUE and SQuAD, achieves new state-of-the-art results on a range of abstractive dialogue, question answering, and summarization tasks, with gains of up to 6 ROUGE. BART also provides a 1.1 BLEU increase over a back-translation system for machine translation, with only target language pretraining. We also report ablation experiments that replicate other pretraining schemes within the BART framework, to better measure which factors most influence end-task performance. BART is a denoising autoencoder for pretraining sequence-to-sequence models. It is trained by corrupting text with an arbitrary noising function, and learning a model to reconstruct the original text. BART is particularly effective when fine tuned for text generation but also works well for comprehension tasks.

Credits

machinelearningapps's People

Contributors

amdnsr avatar dependabot[bot] avatar yashsingla984 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.