Skip to content

Deep Java Library examples

DJL Demo Nightly test

The repository contains the source code of the examples for Deep Java Library (DJL) - an framework-agnostic Java API for deep learning.

Inference examples

Run python pre/post processing

An example application show you how to run python code in DJL.

Malicious URL Detector

An example application detects malicious urls based on a trained Character Level CNN model.

Pneumonia Detection with TensorFlow engine

An example application detects Pneumonia based on X-ray images using a trained Keras model.

Live Object Detection

An example application detects live objects from web camera.

Online DoodleDraw game powered by DJL

A web based DoodleDraw game built with DJL.

Run deep learning in browser

A web application that runs DJL code in browser.

Training examples

Train footwear classification with DJL

An example application trains footwear classification model using DJL.

Visualizing Training with DJL

An example application features a web UI to track and visualize metrics such as loss and accuracy.

Android

Face detection made easy with DJL

An example that shows how to build deep learning android app with ease.

Doodle draw app with PyTorch model

A Doodle draw android game that is built with PyTorch model.

Make your image look like a painting with Style Transfer

This app will take your image and convert it to the style of Van Gogh or Monet among others.

Identify objects with Semantic Segmentation

An app that takes in an image and colors the objects in it.

Translate from French to English with Neural Machine Translation

Write in the French text that you wanted translated and receive an English output.

Speech recognition

An example that shows how to build speech recognition app.

Object detection with ONNX model

An example that shows how to build object detection app with ONNX model.

AWS services

AWS Kinesis Video Streams

An example application that reads the output of a KVS Stream.

Serverless Model Serving with AWS Lambda

An example application that serves deep learning model with AWS Lambda.

Model Serving on AWS Elastic Beanstalk

Build a micro service to deploy on AWS Elastic Beanstalk.

Model Serving on AWS Elastic Beanstalk

Build a micro service to deploy on AWS Elastic Beanstalk.

Low cost inference with AWS Inferentia

An example application that runs low cost/high performance inference with AWS Inferentia.

Big data integration

Spark Image Classification

Contains Spark image classification demos.

Apache Beam CTR Prediction

An example application using Apache Beam to predict the click-through rate for online advertisements.

An example using Apache Flink to run sentiment analysis.

DJL Component in Apache Camel

An example application that demonstrates simple HTTP-service to classify images using Zoo Model.

Other demos

Use multiple engines in single JVM

An example application that runs multiple deep learning frameworks in one Java Process.

Use graalvm to speed up your deep learning application

An example application that demonstrates compile DJL apps into native executables.

Deploy DJL models on Quarkus

An example application that serves deep learning models using Quarkus.