1 / 7

Liferay & Machine Learning With tensorFlow

TensorFlow is a open source software library for machine learning, utilized in several of their endeavors and developed by Google. An easy, quick and fun way to start with it's Automation of label missions from Liferay on pictures predicated on a model.

Download Presentation

Liferay & Machine Learning With tensorFlow

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Liferay and Machine learning with TensorFlow!

  2. A Brief on TensorFlow • It is an open source software library for machine learning, developed by Google and currently used in many of their projects. • An easy, fast and fun way to get started with it is – Automation of tag assignments in Liferay on uploaded images based on a pre-trained model. www.enprowess.com sales@enprowess.com +91 80000 22113

  3. LiferayPortal • TensorFlowlibraries: • libtensorflow_jni-1.8.0.jar • libtensorflow-1.8.0.jar • tensorflow-1.8.0.jar Source:https://mvnrepository.com/artifact/org.tensorflow/tensorflow/1.8.0 • Inception5h. • inception5h.zip (Extract it, this contains Graph file, Model directory and Label file) Source:https://storage.googleapis.com/download.tensorflow.org/models/inception5h.zip • Liferay7 Source: https://www.liferay.com/downloads www.enprowess.com sales@enprowess.com +91 80000 22113

  4. TensorFlow and Inception Step 1: Portlet developed in Liferay that asks you to upload image. www.enprowess.com sales@enprowess.com +91 80000 22113

  5. TensorFlow-Inception5h Snippet Step 2: Pass on the uploaded image path to LabelImage.class (TensorFlow-Inception5h), which return the metadata of the image. byte[] graphDef = readAllBytesOrExit(Paths.get(MODEL_DIR, GRAPH_FILE)); List labels = readAllLinesOrExit(Paths.get(MODEL_DIR, LABEL_FILE)); byte[] imageBytes = readAllBytesOrExit(Paths.get(imageFile)); try(Tensor image = constructAndExecuteGraphToNormalizeImage(imageBytes)) { float[] labelProbabilities = executeInceptionGraph(graphDef, image); intbestLabelIdx = maxIndex(labelProbabilities); metadata = labels.get(bestLabelIdx); String output = String.format(“BEST MATCH: %s (%.2f%% likely)”, metadata, labelProbabilities[bestLabelIdx] * 100f); } www.enprowess.com sales@enprowess.com +91 80000 22113

  6. TensorFlow Result Step 3: Image is stored in Liferay in with relevant folder, along with metadata tags. www.enprowess.com sales@enprowess.com +91 80000 22113

  7. Where to find Liferay Services? • Liferay is open source platform and free enterprise portal which is used by “Enprowess Technologies” for meeting user’s requirements. • Situated in Ahmedabad – India, Enprowess is a global company providing IT solutions. • We at Enprowess deliver solutions as Liferay , Alfresco , Activiti , Full Stack Java , Mobile Application Development and so on. Visit Enprowess

More Related