This is the repository for the current experiments on MNNs in the Machine Learning and Sensing Lab. These experiments build of the work done in Xu (2023).
Clone this repository:
git clone https://github.com/GatorSense/MorphExperiments
cd MorphExperiments
Use the train.py file to train a binary classifier on hit-miss filters on MNIST images of threes and not threes (fours and eights). The test accuracy will include all 10 classes found in the MNIST data, showcasing its ability to reject classes, even if not included in the training data.
python train.py [args]
Refer to the help sections of the argument parser in train.py for more details.
The following metrics are logged throughout training:
- Training and testing confusion matrices
- Histograms of feature map values throughout training per class
- Heatmap on all test classes
- Hit and miss filters over training
All of the above are viewed on Comet.ml, and the user's API key must be put in a .env file in the following format:
COMET_API_KEY=your_api_key_here
Xu, Weihuang (2023). Deep Morph-Convolutional Neural Network: Combining Morphological Transform and Convolution in Deep Neural Networks. [Doctoral dissertation, University of Florida]. UF Digital Collections. https://ufdc.ufl.edu/UFE0059487/00001/pd