AI model from scratch in C++ for image classification (MNIST dataset)
- OpenCV
- Doxygen (only to generate the documentation)
cmake -S . -B build -G "Unix Makefiles"
Then in build/ : make
Run the executable file in build/bin/
Accuracy: 87 %
- nbEpochs = 11
- batchSize = 64
- maxNbInstancesPerClass
- training set: 6000
- test set: 1000
- Network
- Input: 28*28
- Layers
- Dense (512) LeakyRelu
- Dense (10) Softmax
- Learning rate: 0.03
- Improve performance: add an option to use GPU with CUDA to increase the training speed. Use in the Tensor class the following code: https://developer.nvidia.com/blog/programming-tensor-cores-cuda-9/
- Conv2D and Max-pooling layers
- Confusion matrix
- Accuracy graph
- More loss functions
- Run in the project root folder:
doxygen
- Open the doc folder and either open the LaTeX version or the HTML one (the index.html file)
Robin Meneust