mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-10 20:02:13 +08:00
CD210
This commit is contained in:
@@ -32,7 +32,10 @@ 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']:
|
||||
model_metadata_names = ['driving_vision', 'driving_policy']
|
||||
if File("models/driving_off_policy.onnx").exists():
|
||||
model_metadata_names.append('driving_off_policy')
|
||||
for model_name in model_metadata_names:
|
||||
fn = File(f"models/{model_name}").abspath
|
||||
script_files = [File(Dir("#frogpilot/tinygrad_modeld").File("get_model_metadata.py").abspath)]
|
||||
cmd = f'python3 {Dir("#frogpilot/tinygrad_modeld").abspath}/get_model_metadata.py {fn}.onnx'
|
||||
@@ -48,7 +51,10 @@ def tg_compile(flags, model_name):
|
||||
)
|
||||
|
||||
# Compile small models
|
||||
for model_name in ['driving_vision', 'driving_policy', 'dmonitoring_model']:
|
||||
model_compile_names = ['driving_vision', 'driving_policy', 'dmonitoring_model']
|
||||
if File("models/driving_off_policy.onnx").exists():
|
||||
model_compile_names.append('driving_off_policy')
|
||||
for model_name in model_compile_names:
|
||||
flags = {
|
||||
'larch64': 'DEV=QCOM',
|
||||
'Darwin': 'DEV=CPU IMAGE=0',
|
||||
|
||||
Reference in New Issue
Block a user