Skip to content

Latest commit

 

History

History
34 lines (29 loc) · 3.34 KB

File metadata and controls

34 lines (29 loc) · 3.34 KB

Training and Quantization

Overview of directories and files

Configuration file (deep_learning_config.ini)

The file contains variables needed as input for the training, as well as parameters that are computed during execution that will be used during the deployment. These last are overwritten at every training and, therefore are also saved in the onnx_models/ and tflite_models/ directories as .txt files.

Command to perform training and quantization

  1. Check that the DATA_PATHS in the deep_learning_config.ini file points to the directories in which you have downloaded the dataset.
  2. If you want, you can adjust the training parameters in the same file.
  3. Execute the following command: python3 main_deep_learning.py

Files saved throughout the execution

  • onnx_models/
    • gate_classifier_model_{wandb_model_version}.onnx, the .onnx file of the trained gate classifier.
    • quant_state_gate_classifier_model_{wandb_model_version}.json, quantization stats retrieved by NNTool.
    • quant_values_gate_classifier_model_{wandb_model_version}.txt, inputs' and output's quantization values.
  • tflite_models/
    • gate_navigator_model_{wandb_model_version}.tflite, the .tflite file of the trained and quantized gate navigator.
    • quant_values_gate_navigator_model_{wandb_model_version}.txt, inputs' and output's quantization values.