This folder contains tutorials that illustrate how to accomplish basic AI tasks with Deep Java Library (DJL).
- Run object detection with model zoo
- Load pre-trained PyTorch model
- Load pre-trained Apache MXNet model
- Transfer learning example
- Question answering example
You can run our notebook online:
JDK 11 (or above are required) to run the examples provided in this folder.
to confirm the java path is configured properly:
java --list-modules | grep "jdk.jshell"
> [email protected]
pip3 install jupyter
git clone https://github.com/frankfliu/IJava.git
cd IJava/
./gradlew installKernel
jupyter notebook
You may want to use docker for simple installation or you are using Windows.
cd jupyter
docker run -itd -p 127.0.0.1:8888:8888 -v $PWD:/home/jupyter deepjavalibrary/jupyter
You can open the http://localhost:8888
to see the hosted instance on docker.
You can read Dockerfile for detail. To build docker image:
cd jupyter
docker build -t deepjavalibrary/jupyter .
cd jupyter
docker-compose build
docker-compose up -d
You can open the http://localhost:8888
to see the hosted instance on docker compose.