O'Reilly logo

Java Deep Learning Projects by Md. Rezaul Karim

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Preparing training and test sets

As described earlier, the UCF101Reader.java class is used to extract the features and prepare the training and test sets. First, we set and show Java the MP4 file's path, as shown here:

String dataDirectory = "VideoData/UCF101_MP4/";// Paths to video dataset

It is to be noted that training the network with the video clips took about 45 hours for me on the EC2 p2.8xlarge machine. However, I did not have that patience for a second time; therefore, I performed the training by utilizing only these video categories having 1,112 video clips:

The UCF101 dataset directory structure (MP4 version)

Then we define the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required