This commit is contained in:
parent
9f4b71437e
commit
3437512d7c
|
@ -4,10 +4,8 @@ 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.optimization_style
|
||||
target_platform = settings.app.target_platform
|
||||
|
||||
# Build the command
|
||||
command = [
|
||||
|
@ -15,13 +13,10 @@ command = [
|
|||
"-m",
|
||||
"onnxruntime.tools.convert_onnx_models_to_ort",
|
||||
input_path,
|
||||
"--output_dir",
|
||||
"ort_files",
|
||||
"--optimization_style",
|
||||
optimization_style,
|
||||
"--target_platform",
|
||||
target_platform,
|
||||
"--output_dir", "ort_files",
|
||||
"--optimization_style", optimization_style,
|
||||
"--target_platform", target_platform,
|
||||
]
|
||||
|
||||
# Run it
|
||||
# Run the command
|
||||
subprocess.run(command, check=True)
|
||||
|
|
Loading…
Reference in New Issue
Block a user