Skip to content

davidkiss/djl-spring-boot-xray

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

Sample Spring Boot app using https://github.com/awslabs/djl that can detect COVID-19 using X-ray images. Please note it only runs on mac or linux as it uses Tensorflow.

See here for blog post on this code: http://kaviddiss.com/2020/05/14/deep-learning-with-spring-boot-and-djl/.

Build

Run mvn compile.

Run

This app is based on https://github.com/aws-samples/djl-demo/tree/master/covid19-detection sample project and it needs the Tensorflow module to be downloaded first before it can be run.

Run the following command:

mkdir models
cd models
curl https://djl-tensorflow-javacpp.s3.amazonaws.com/tensorflow-models/covid-19/saved_model.zip | jar xv
cd ..

./mvnw spring-boot:run -Dai.djl.repository.zoo.location=models/saved_model

Then visit http://localhost:8080/index.html to get diagnose on X-ray image URLs. Sample images to use:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published