MCPcopy Create free account
hub / github.com/AllentDan/LibtorchTutorials / dataSetClc

Method dataSetClc

lesson5-TrainingVGG/dataSet.h:19–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17public:
18 int num_classes = 0;
19 dataSetClc(std::string image_dir, std::string type){
20 load_data_from_folder(image_dir, std::string(type), image_paths, labels, num_classes-1);
21 }
22 // Override get() function to return tensor at location index
23 torch::data::Example<> get(size_t index) override{
24 std::string image_path = image_paths.at(index);

Callers

nothing calls this directly

Calls 1

load_data_from_folderFunction · 0.70

Tested by

no test coverage detected