Data processing workflow

Once the files are in MP4 format, we can start extracting the features. Now, in order to process the UCF101 dataset and extract the features, I wrote three more Java classes, outlined as follows:

  • This is the main entry point for video file reading, decoding, and conversion to ND4J vectors. It receives the full path to the dataset and creates the DataSetIterator required for the neural network. In addition, it generates a list of all classes, and it assigns sequential integers for them.
  • This reads all the clips and decodes using JCodec.
  • This is similar to the one provided by DL4J but an improved version, which works pretty well on ...

Get Java Deep Learning Projects now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.