public CifarLoader(int height, int width, int channels, ImageTransform imgTransform, boolean train, boolean useSpecialPreProcessCifar, File fullDir, long seed, boolean shuffle) { super(height, width, channels, imgTransform); this.height = height; this.width = width; this.channels = channels; this.train = train; this.useSpecialPreProcessCifar = useSpecialPreProcessCifar; this.seed = seed; this.shuffle = shuffle; if (fullDir == null) { this.fullDir = getDefaultDirectory(); } else { this.fullDir = fullDir; } meanVarPath = new File(this.fullDir, "meanVarPath.txt"); trainFilesSerialized = FilenameUtils.concat(this.fullDir.toString(), "cifar_train_serialized"); testFilesSerialized = FilenameUtils.concat(this.fullDir.toString(), "cifar_test_serialized.ser"); load(); }