Class ImageNet

All Implemented Interfaces:
ai.djl.training.dataset.Dataset

public class ImageNet extends AbstractImageFolder
ImageNet is an image classification dataset from http://image-net.org 2012 Classification dataset.

Each image might have different Shapes.

  • Method Details

    • builder

      public static ImageNet.Builder builder()
      Creates a new builder to build a ImageNet.
      Returns:
      a new builder
    • getWordNetIds

      public String[] getWordNetIds()
      Returns all WordNet ids of this ImageNet dataset.
      Returns:
      all WordNet ids of this ImageNet dataset
    • getClassNames

      public String[] getClassNames()
      Returns all class names of this ImageNet dataset.
      Returns:
      all class names of this ImageNet dataset
    • getClassFull

      public String[] getClassFull()
      Returns all full class names of this ImageNet dataset.
      Returns:
      all full class names of this ImageNet dataset
    • prepare

      public void prepare(ai.djl.util.Progress progress) throws IOException
      Throws:
      IOException
    • getImagePath

      protected Path getImagePath(String key)
      Specified by:
      getImagePath in class AbstractImageFolder