Tool/software:
I am training yolox_s_lite model on custom dataset using Edgeai-modelmaker for 200 epochs , but I have stopped the training for 103th epoch and now I want the .onnx model at the current epoch i.e. 103 . I have the epoch_103.pth file in the run section. How should that be converted to .onnx ???
And adding to above query, how could we resume the training again if we have stopped it in between (considering the training is being done through edgeai-modelmaker) .
And I tried train the yolox_s_lite model for single epoch through the same edgeai-modelmaker just for checking the output , I am getting the .onnx and .prototxt file but while compilation I am encountering with an error as below :
onnxruntime.capi.onnxruntime_pybind11_state.Fail: [ONNXRuntimeError] : 1 : FAIL : Load model from /home/chai/edgeai-tensorlab/edgeai-modelmaker/data/projects/Merged_Dataset_Updated/run/20250813-144622/yolox_s_lite/compilation/work/od-8220/model/model.onnx failed:/root/onnxruntime/onnxruntime/core/graph/model.cc:149 onnxruntime::Model::Model(onnx::ModelProto&&, const PathString&, const IOnnxRuntimeOpSchemaRegistryList*, const onnxruntime::logging::Logger&, const onnxruntime::ModelOptions&) Unsupported model IR version: 10, max supported IR version: 9
TASKS TOTAL=1, NUM_RUNNING=0: 100%|█████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:02<00:00, 4.48it/s, postfix={'RUNNING': [], 'COMPLETED': ['od-8220']}]
WARNING: Benchmark - completed: 0/1
TASKS TOTAL=1, NUM_RUNNING=0: 100%|█████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:03<00:00, 3.06s/it, postfix={'RUNNING': [], 'COMPLETED': ['od-8220']}]
INFO: packaging artifacts to /home/chai/edgeai-tensorlab/edgeai-modelmaker/data/projects/Merged_Dataset_Updated/run/20250813-144622/yolox_s_lite/compilation/pkg please wait...
WARNING:20250813-155953: could not package - /home/chai/edgeai-tensorlab/edgeai-modelmaker/data/projects/Merged_Dataset_Updated/run/20250813-144622/yolox_s_lite/compilation/work/od-8220
Traceback (most recent call last):
File "/home/chai/edgeai-tensorlab/edgeai-modelmaker/./scripts/run_modelmaker.py", line 153, in <module>
main(config)
File "/home/chai/edgeai-tensorlab/edgeai-modelmaker/./scripts/run_modelmaker.py", line 88, in main
model_runner.run()
File "/home/chai/edgeai-tensorlab/edgeai-modelmaker/edgeai_modelmaker/ai_modules/vision/runner.py", line 228, in run
self.model_compilation.run()
File "/home/chai/edgeai-tensorlab/edgeai-modelmaker/edgeai_modelmaker/ai_modules/vision/compilation/edgeai_benchmark.py", line 163, in run
edgeai_benchmark.interfaces.package_artifacts(self.settings, self.work_dir, out_dir=self.package_dir, custom_model=True)
File "/home/chai/edgeai-tensorlab/edgeai-benchmark/edgeai_benchmark/interfaces/run_package.py", line 271, in package_artifacts
with open(os.path.join(out_dir,'artifacts.yaml'), 'w') as fp:
FileNotFoundError: [Errno 2] No such file or directory: '/home/chai/edgeai-tensorlab/edgeai-modelmaker/data/projects/Merged_Dataset_Updated/run/20250813-144622/yolox_s_lite/compilation/pkg/artifacts.yaml'