Experiment with different pre-processing methods to learn the performance of the CNN model.
https://www.python.org/dev/peps/pep-0008/
Important packages:
- tensorflow==2.1.0
- numpy==1.19.3
- h5py==2.10.0
Built with
There are 3 methods provided (in this repo) to scale pixel values in images. Pixels size set for this model is 28x28. Please refer process_data.py to see data pre-processing flow.
- Normalization
- Mean
- Standardize
Note:
- For development environment only. Not suitable for production.
- Modify the input shape and type in data.py (if required).
- Modify the layers in load.py (if required).
Install Python packages.
The result is saved in h5.
python LeNet <method>
Run modelling to create new model.
Note:
- There are 3 types of activation functions (ReLu, Tan, Sigmoid) tested (in this repo) and model with ReLu has the highest accuracy.
Include testing data in data.py file. Assign to
test_y
Modelling
Find the best activation function.
Prediction
Use different pre-processing methods.
Dataset
https://github.com/ami-sm/cnn-models/blob/master/LICENSE
MIT © AMI-SM