All checks were successful
Modulation Recognition Demo / ria-demo (push) Successful in 2m52s
Documentation and formatting updates: - Updates to project README. - Adding project health files (`LICENSE` and `SECURITY.md`) - A few minor formatting changes throughout - A few typo fixes, removal of unused code, cleanup of shadowed variables, and fixed import ordering with isort. **Note:** These changes have not been tested. Co-authored-by: Michael Luciuk <michael.luciuk@gmail.com> Co-authored-by: Liyu Xiao <liyu@qoherent.ai> Reviewed-on: https://git.riahub.ai/qoherent/modrec-workflow/pulls/1 Reviewed-by: Liyux <liyux@noreply.localhost> Co-authored-by: Michael Luciuk <michael@qoherent.ai> Co-committed-by: Michael Luciuk <michael@qoherent.ai>
27 lines
577 B
Python
27 lines
577 B
Python
import subprocess
|
|
|
|
from helpers.app_settings import get_app_settings
|
|
|
|
settings = get_app_settings()
|
|
|
|
input_path = "onnx_files/inference_recognition_model.onnx"
|
|
optimization_style = settings.app.optimization_style
|
|
target_platform = settings.app.target_platform
|
|
|
|
# Build the command
|
|
command = [
|
|
"python",
|
|
"-m",
|
|
"onnxruntime.tools.convert_onnx_models_to_ort",
|
|
input_path,
|
|
"--output_dir",
|
|
"ort_files",
|
|
"--optimization_style",
|
|
optimization_style,
|
|
"--target_platform",
|
|
target_platform,
|
|
]
|
|
|
|
# Run the command
|
|
subprocess.run(command, check=True)
|