November 2019
Intermediate to advanced
304 pages
8h 40m
English
Step 1 can be automated using TinyImageNetFetcher, as shown here:
TinyImageNetFetcher fetcher = new TinyImageNetFetcher(); fetcher.downloadAndExtract();
For any OS, the data needs to be copied to the user's home directory. Once it is executed, we can get a reference to the train/test dataset directory, as shown here:
File baseDirTrain = DL4JResources.getDirectory(ResourceType.DATASET, f.localCacheName() + "/train"); File baseDirTest = DL4JResources.getDirectory(ResourceType.DATASET, f.localCacheName() + "/test");
You can also mention your own input directory location from your local disk or HDFS. You will need to mention that in place of dirPathDataSet in step 2.
In step 2 and step 3, we created batches of images so that ...