python3 ray_tune.py
Best training parameters
{'batchsz': 32, 'lr': 0.0023538429427261503, 'epoch': 20, 'drop': 0.4, 'momentum': 0.2}
The model is saved in training/tuned_model
ray_tuned_IEGM_net.pkl
ray_tuned_IEGM_net_state_dict.pkl
from help_code_demo import pytorch2onnx
pytorch2onnx('./tuned_model/ray_tuned_IEGM_net.pkl', './tuned_model/model_1', 1250)
Following https://github.com/tinymlcontest/tinyml_contest2022_demo_example/blob/master/README-Cube.md and https://github.com/tinymlcontest/tinyml_contest2022_demo_evaluation/blob/main/How%20to%20validate%20X-CUBE-AI%20model%20on%20board.md
Generated codes are saved in folder inference/tinyml-gen