Audio Classification — Model Analysis
Input Files Required
| Input | Description |
|---|---|
| Model (.h5) | Trained TensorFlow/Keras model |
| X Test (.npy) | Test feature dataset |
| Y Test (.npy) | Test label dataset |
Model Visualisation
Load the .h5 model and click "Visualize Model". The architecture diagram displays:
- Input shape (e.g. 40 × 40 × 1)
- Layer-by-layer flow: Conv → Conv → Conv → Flatten → Dense → Softmax
- Output shape after each layer
- Presence of QuantizeWrapperV2 (if QAT was used)
- Final number of output classes
Run Conversion
Converts the .h5 model to a deployable NDP firmware package (.synpkg).
- Browse to the
.h5model file - Select
X_test.npyandY_test.npy - Click Run Conversion and monitor the console
During conversion the tool:
- Quantizes weights to INT8
- Converts layers to Syntiant hardware operations
- Maps model into NDP memory banks
- Generates
.synpkgoutput files
Run Simulation
Validates that the converted NDP model produces the same predictions as the original Keras model.
- Open the Syntiant Model Converter GUI
- Set: Converted Model Path →
syntiant_output/model0, X Test Data →x_test.npy, Y Test Labels →y_test.npy - Click Run Simulation and monitor logs
Run Comparison
Compares original Keras and NDP simulated model to verify conversion preserved accuracy.
- Ensure both conversion and simulation are complete
- Click Run Comparison
Results shown in tabs: Generated Files, Prediction Table, Confusion Matrix, Time Series Graph.