This module contains a number of basic and standard datasets in the Deep Java Library’s (DJL). These datasets are used to train deep learning models.
This module contains the following datasets:
com.twelvemonkeys.imageio:imageio-jpeg:3.5
dependency to your projectNote: You have to manually download the ImageNet dataset due to licensing requirements.
The latest javadocs can be found on the djl.ai website.
You can also build the latest javadocs locally using the following command:
# for Linux/macOS:
./gradlew javadoc
# for Windows:
..\gradlew javadoc
The javadocs output is built in the build/doc/javadoc folder.
You can pull the module from the central Maven repository by including the following dependency in your pom.xml
file:
<dependency>
<groupId>ai.djl</groupId>
<artifactId>basicdataset</artifactId>
<version>0.9.0</version>
</dependency>
Some datasets(e.g. COCO) contains non-standard image files. OpenJDK may fail to load these images. twelvemonkeys ImageIO plugins provide a wide range of image format support. If you need to load images that not supported by default JDK, you can consider add the following dependencies into your project:
<dependency>
<groupId>com.twelvemonkeys.imageio</groupId>
<artifactId>imageio-jpeg</artifactId>
<version>3.5</version>
</dependency>
<dependency>
<groupId>com.twelvemonkeys.imageio</groupId>
<artifactId>imageio-bmp</artifactId>
<version>3.5</version>
</dependency>
...