dmonitoringmodeld: clean up data structures (#36624)

* update onnx

* get meta

* start

* cast

* deprecate notready

* more

* line too long

* 2
This commit is contained in:
ZwX1616
2025-11-14 14:29:04 -08:00
committed by GitHub
parent a1795f80dd
commit b778da1d7c
7 changed files with 59 additions and 87 deletions

View File

@@ -32,7 +32,7 @@ lenvCython.Program('models/commonmodel_pyx.so', 'models/commonmodel_pyx.pyx', LI
tinygrad_files = ["#"+x for x in glob.glob(env.Dir("#tinygrad_repo").relpath + "/**", recursive=True, root_dir=env.Dir("#").abspath) if 'pycache' not in x]
# Get model metadata
for model_name in ['driving_vision', 'driving_policy']:
for model_name in ['driving_vision', 'driving_policy', 'dmonitoring_model']:
fn = File(f"models/{model_name}").abspath
script_files = [File(Dir("#selfdrive/modeld").File("get_model_metadata.py").abspath)]
cmd = f'python3 {Dir("#selfdrive/modeld").abspath}/get_model_metadata.py {fn}.onnx'