Skip to content

Commit

Permalink
Style Fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
kartikdutt18 committed Jun 4, 2020
1 parent 93acea2 commit e97e616
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion dataloader/dataloader_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ template<

LoadObjectDetectionDataset(datasetMap[dataset].trainingAnnotationPath,
datasetMap[dataset].trainingImagesPath, datasetMap[dataset].classes,
validRatio, shuffle,augmentations, augmentationProbability);
validRatio, shuffle, augmentations, augmentationProbability);

// Load testing data if any. Most object detection dataset
// have private evaluation servers.
Expand All @@ -84,6 +84,20 @@ template<
datasetMap[dataset].imageHeight, datasetMap[dataset].imageDepth);
}
}
else if (datasetMap[dataset].datasetType == "image-classification")
{
LoadImageDatasetFromDirectory(datasetMap[dataset].trainingImagesPath,
datasetMap[dataset].imageWidth, datasetMap[dataset].imageHeight,
datasetMap[dataset].imageDepth, true, validRatio, shuffle,
augmentation, augmentationProbability);

if (datasetMap[dataset].testingImagesPath.length() > 0)
{
LoadAllImagesFromDirectory(datasetMap[dataset].testingImagesPath,
testFeatures, testLabels, datasetMap[dataset].imageWidth,
datasetMap[dataset].imageHeight, datasetMap[dataset].imageDepth);
}
}

// Preprocess the dataset.
datasetMap[dataset].PreProcess(trainFeatures, trainLabels,
Expand Down

0 comments on commit e97e616

Please sign in to comment.