A web application for analyzing and visualizing ONNX models, similar to Netron.
- Load and visualize ONNX models in a top-to-bottom format
- Support for both float and quantized models
- Quantize float models to INT8 precision using ONNX quantizer (QDQ format)
- Layer-wise error analysis comparing weights before and after quantization
- Visualization of weight and activation distributions as histograms
- Clone this repository
- Install dependencies:
pip install -r requirements.txt
- Start the server:
python app.py - Open your browser and navigate to
http://localhost:5000 - Upload an ONNX model to analyze
app.py: Main Flask applicationstatic/: Static files (CSS, JavaScript)templates/: HTML templatesutils/: Utility functions for ONNX model processingmodel_analyzer.py: Functions for model analysisquantizer.py: Functions for model quantizationvisualizer.py: Functions for visualization
- Python 3.8+
- See
requirements.txtfor Python dependencies