README.md 385 Bytes
Newer Older
mutsuki's avatar
mutsuki committed
1
# CIFAR10 Loader written in C++
mutsuki's avatar
mutsuki committed
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19

## Requirement

- C++11

## Use

```cpp
const auto cifar_10_sample = mtk::load_cifar_10("cifar-10-batches-bin/data_batch_1.bin");
for(const auto& sample : cifar_10_sample){
	// type : std::vector<unsigned int>(32 x 32)
	// unsigned int <- 0xrrggbb
	const auto image = std::get<0>(sample);

	// type : int
	const auto label = std::get<1>(sample);
}
```