GithubHelp home page GithubHelp logo

ibm / use-deep-learning-in-ibm-cloud-functions Goto Github PK

View Code? Open in Web Editor NEW
4.0 16.0 4.0 653 KB

In support of "Leverage deep learning in Apache OpenWhisk / IBM Cloud Functions" tutorial

Home Page: https://developer.ibm.com/tutorials/leverage-deep-learning-in-apache-openwhisk-ibm-cloud-functions

License: Apache License 2.0

Python 36.11% Shell 18.32% JavaScript 26.71% Batchfile 18.86%
ibm-cloud-functions serverless deep-learning

use-deep-learning-in-ibm-cloud-functions's Introduction

Create a serverless app that annotates images (text, video, audio, ...)

In this tutorial you will create a serverless application using IBM Cloud Functions that monitors the content of a Cloud Object Storage bucket for changes using triggers. Whenever an image is uploaded to the bucket a Cloud Object Storage trigger fires and invokes an action that analyzes the image content using a deep learning microservice from the Model Asset Exchange.

serverless scenario

Out of the box the application detects objects in an image but you can easily modify the application to generate image captions or perform other kinds of analysis on images or other media types, such as text, audio, or video. The Cloud Functions source code is included for Python and Node.js.

Cloud Functions activity log

Steps

If you are not familiar with IBM Cloud Functions or Cloud Object Storage, follow the detailed deployment instructions in the "Leverage deep learning in IBM Cloud Functions" tutorial.

Quickstart

If you are already familiar with IBM Cloud Functions and Cloud Object Storage you can use the shell and batch scripts in this repository to create and delete the serverless application. To use the scripts you must have a current version of the IBM Cloud CLI installed and the Cloud Functions plug-in installed.

  1. Create a Cloud Object Storage service instance in the IBM Cloud.
  2. Create service credentials for this service instance that the serverless app will use to access the bucket.
  3. Create a regional bucket (in us-south, us-east, or eu-gb) in this instance.
  4. Open a terminal window.
  5. Customize create_serverless_app.sh/bat by replacing the <TODO-...> placeholders.
  6. Run create_serverless_app.sh/bat to create the application.
  7. Open the Cloud Functions dashboard in a web browser.
  8. Upload a JPG/PNG image to the regional bucket and monitor the Cloud Functions activity log. Cloud Functions activity log
  9. Upload a text file to the bucket. No action should be triggered.
  10. Delete a previously uploaded JPG/PNG image. The corresponding JSON annotations file should be automatically removed.

To uninstall the application run delete_serverless_app.sh/bat .

License

Apache 2.0

use-deep-learning-in-ibm-cloud-functions's People

Contributors

imgbotapp avatar ptitzler avatar stevemar avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

use-deep-learning-in-ibm-cloud-functions's Issues

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.