Skip to content

Add automotive reference implementation workflow #407

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 96 commits into from
May 26, 2025
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
96 commits
Select commit Hold shift + click to select a range
3f139eb
add automotive 0.5 model download scripts
anandhu-eng May 13, 2025
bf32c06
typo fix
anandhu-eng May 13, 2025
9a4bb54
fix duplication + change rclone folder structure
anandhu-eng May 13, 2025
f2cef39
[Automated Commit] Format Codebase [skip ci]
github-actions[bot] May 13, 2025
678b42c
add comment
anandhu-eng May 13, 2025
7eecca8
Merge branch 'automotive' of https://github.com/anandhu-eng/mlperf-au…
anandhu-eng May 13, 2025
051e168
[Automated Commit] Format Codebase [skip ci]
github-actions[bot] May 13, 2025
d5304ba
add comment
anandhu-eng May 13, 2025
76321b7
[Automated Commit] Format Codebase [skip ci]
github-actions[bot] May 13, 2025
ac44c38
add comment
anandhu-eng May 13, 2025
f8fcf3d
fix bug
anandhu-eng May 13, 2025
80fd346
[Automated Commit] Format Codebase [skip ci]
github-actions[bot] May 13, 2025
6177ab2
add comment
anandhu-eng May 13, 2025
9c3943c
add dataset download for automotive v5.0
anandhu-eng May 14, 2025
1dec2bd
update run.sh
anandhu-eng May 14, 2025
8323fb8
fix syntax
anandhu-eng May 14, 2025
3af70e4
add script for prebuilt preprocessed datasets
anandhu-eng May 15, 2025
21e7d39
add script to get automotive ref implementation repo
anandhu-eng May 16, 2025
171cf00
add script to get loadgen for automotive
anandhu-eng May 16, 2025
9d7e769
add script for automotive utils
anandhu-eng May 16, 2025
f7bfd99
updated accuracy script for including automotive models
anandhu-eng May 17, 2025
4f29a3e
[Automated Commit] Format Codebase [skip ci]
github-actions[bot] May 17, 2025
262f993
added missing packages, dependencies, run commands for v0.5
anandhu-eng May 21, 2025
c023673
Merge branch 'automotive' of https://github.com/anandhu-eng/mlperf-au…
anandhu-eng May 21, 2025
ca9cb7d
[Automated Commit] Format Codebase [skip ci]
github-actions[bot] May 21, 2025
4c74495
enable backward compatability
anandhu-eng May 21, 2025
a7f2c28
changes for app-mlperf-automotive
anandhu-eng May 21, 2025
8aa9494
[Automated Commit] Format Codebase [skip ci]
github-actions[bot] May 21, 2025
fcdcf90
changes for run-mlperf-automotive-app
anandhu-eng May 21, 2025
8f49420
Merge branch 'automotive' of https://github.com/anandhu-eng/mlperf-au…
anandhu-eng May 21, 2025
83c091a
prevent duplication of loadgen script
anandhu-eng May 21, 2025
8dbc710
prevent duplication of loadgen script
anandhu-eng May 21, 2025
2319cb5
added tests for automotive dataset and model downloads
anandhu-eng May 21, 2025
05a1a0c
env variable correction
anandhu-eng May 21, 2025
2f8508b
created alias for reference
anandhu-eng May 21, 2025
3bfece2
add docker os version
anandhu-eng May 21, 2025
20bcb64
handle string while parsing docker os version
anandhu-eng May 21, 2025
1412069
fix for downloading model and dataset to host
anandhu-eng May 21, 2025
5199f74
fix config names for nuscenes and cognata
anandhu-eng May 21, 2025
94e14ce
Merge branch 'dev' into automotive
arjunsuresh May 21, 2025
16083bf
fix typo
anandhu-eng May 21, 2025
5e78e06
Merge branch 'automotive' of https://github.com/anandhu-eng/mlperf-au…
anandhu-eng May 21, 2025
901cfba
fix missing folder ids
anandhu-eng May 21, 2025
63f20d4
fix typo
anandhu-eng May 21, 2025
74e6987
add framework as input arg + pass onnx tags
anandhu-eng May 21, 2025
d730a2e
prevent dataset and model download in docker build stage
anandhu-eng May 21, 2025
6330440
get automotive loadgen
anandhu-eng May 21, 2025
22869b8
mount generic ml model file env
anandhu-eng May 21, 2025
dbb3d9a
[Automated Commit] Format Codebase [skip ci]
github-actions[bot] May 21, 2025
a7336b2
fix typo
anandhu-eng May 21, 2025
d14a9c6
populate inference repo paths
anandhu-eng May 21, 2025
dcd50e7
code clean
anandhu-eng May 21, 2025
5b6b7e3
correct implementation paths in repo
anandhu-eng May 21, 2025
d7331b7
pytorch fix
anandhu-eng May 21, 2025
a06aaa7
make dataset path proper
anandhu-eng May 21, 2025
6b37866
[Automated Commit] Format Codebase [skip ci]
github-actions[bot] May 21, 2025
28b0285
fix env var issue
anandhu-eng May 21, 2025
8082cdf
minor fixes
anandhu-eng May 21, 2025
f28efa9
fix typo
anandhu-eng May 21, 2025
9400bef
add nuscenes root
anandhu-eng May 22, 2025
4c5feed
[Automated Commit] Format Codebase [skip ci]
github-actions[bot] May 22, 2025
48a3974
fix path
anandhu-eng May 22, 2025
601d7d3
fix path
anandhu-eng May 22, 2025
587f453
[Automated Commit] Format Codebase [skip ci]
github-actions[bot] May 22, 2025
e581a69
Update run command generations
anandhu-eng May 22, 2025
15a36c4
Merge branch 'automotive' of https://github.com/anandhu-eng/mlperf-au…
anandhu-eng May 22, 2025
5ee32b3
remove mlperf conf
anandhu-eng May 22, 2025
8cf9bc5
fix batch size
anandhu-eng May 22, 2025
867a605
add posthook dependencies
anandhu-eng May 22, 2025
dfd5b88
corrected state keys
anandhu-eng May 22, 2025
6f65c97
changes for command generation
anandhu-eng May 22, 2025
5b3945e
[Automated Commit] Format Codebase [skip ci]
github-actions[bot] May 22, 2025
4d89cbf
register model and dataset to cache in docker
anandhu-eng May 22, 2025
f27b3bf
us is_true
anandhu-eng May 22, 2025
a5a8ca0
[Automated Commit] Format Codebase [skip ci]
github-actions[bot] May 22, 2025
d085b32
fix docker user issue
anandhu-eng May 22, 2025
fbd8c8a
add dependencies for accuracy checker
anandhu-eng May 22, 2025
7f5d586
Merge branch 'dev' into automotive
arjunsuresh May 22, 2025
f2f54ba
Merge branch 'dev' into automotive
arjunsuresh May 22, 2025
05814b5
Merge branch 'dev' into automotive
arjunsuresh May 22, 2025
f205bb2
Merge branch 'dev' into automotive
arjunsuresh May 22, 2025
48f3276
Merge branch 'dev' into automotive
arjunsuresh May 23, 2025
e44ef4a
[Automated Commit] Format Codebase [skip ci]
github-actions[bot] May 23, 2025
cb9659d
added accuracy checker min files download
anandhu-eng May 24, 2025
c5b8f79
fixes for nuscenes accuracy checker
anandhu-eng May 24, 2025
5084ab4
path fixes
anandhu-eng May 24, 2025
710d156
resolve inference repo conflict + env variable updates
anandhu-eng May 24, 2025
60c96ff
fix variation groups
anandhu-eng May 24, 2025
82bebe1
fix reference repo source
anandhu-eng May 24, 2025
2e3a05b
Create test-mlperf-automotive.yml
arjunsuresh May 24, 2025
a0f79ca
Update run-tests-on-modified-meta.yml
arjunsuresh May 24, 2025
4d8d499
remove code for waymo
anandhu-eng May 24, 2025
1218601
Update run-tests-on-modified-meta.yml
arjunsuresh May 24, 2025
4980a82
Merge branch 'dev' into automotive
arjunsuresh May 25, 2025
51993a9
clone automotive repo with particular commit
anandhu-eng May 26, 2025
440474e
fix sha
anandhu-eng May 26, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions script/get-ml-model-bevformer/COPYRIGHT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Copyright Notice

© 2025-2026 MLCommons. All Rights Reserved.

This file is licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License can be obtained at:

[Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is provided on an "AS IS" basis, without warranties or conditions of any kind, either express or implied. Please refer to the License for the specific language governing permissions and limitations under the License.
23 changes: 23 additions & 0 deletions script/get-ml-model-bevformer/customize.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
from mlc import utils
import os


def preprocess(i):

os_info = i['os_info']

env = i['env']

if os_info['platform'] == "windows":
return {'return': 1, 'error': 'Script not supported in windows yet!'}

return {'return': 0}


def postprocess(i):

env = i['env']

env['MLC_ML_MODEL_BEVFORMER_PATH'] = os.path.join(env['MLC_ML_MODEL_BEVFORMER_PATH'], env['MLC_ML_MODEL_FILENAME'])

return {'return': 0}
75 changes: 75 additions & 0 deletions script/get-ml-model-bevformer/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
alias: get-ml-model-bevformer
automation_alias: script
automation_uid: 5b4e0237da074764
cache: true
tags:
- get
- ml-model
- bevformer
uid: 438a053f666443bd
new_env_keys:
- MLC_ML_MODEL_BEVFORMER_PATH
print_env_at_the_end:
MLC_ML_MODEL_BEVFORMER_PATH: BevFormer checkpoint path
variations:
onnx:
group: model-format
default: true
env:
MLC_MODEL_FORMAT: onnx
MLC_MODEL_RCLONE_FILEPATH: model_checkpoint_bevformer/bevformer_tiny.onnx
MLC_ML_MODEL_FILENAME: bevformer_tiny.onnx
pytorch:
group: model-format
env:
MLC_MODEL_FORMAT: pth
MLC_MODEL_RCLONE_FILEPATH: model_checkpoint_bevformer/bevformer_tiny_epoch_24.pth
MLC_ML_MODEL_FILENAME: bevformer_tiny_epoch_24.onnx
mlc:
group: download-src
default: true
prehook_deps:
- tags: get,rclone
enable_if_env:
MLC_TMP_REQUIRE_DOWNLOAD:
- yes
- tags: get,rclone-config,_config-name.mlc-nuscenes
force_cache: true
enable_if_env:
MLC_TMP_REQUIRE_DOWNLOAD:
- yes
env:
MLC_RCLONE_DRIVE_FOLDER_ID: 17CpM5eU8tjrxh_LpH_BTNTeT37PhzcnC
- enable_if_env:
MLC_TMP_REQUIRE_DOWNLOAD:
- 'yes'
env:
MLC_DOWNLOAD_FINAL_ENV_NAME: MLC_ML_MODEL_BEVFORMER_PATH
MLC_EXTRACT_FINAL_ENV_NAME: MLC_ML_MODEL_BEVFORMER_PATH
MLC_DOWNLOAD_URL: 'mlc-nuscenes:nuscenes_dataset/<<<MLC_MODEL_RCLONE_FILEPATH>>>'
MLC_DOWNLOAD_EXTRA_OPTIONS: ' --include '
extra_cache_tags: ml,model,bevformer
force_cache: true
names:
- dae
tags: download-and-extract
force_env_keys:
- MLC_OUTDIRNAME
update_tags_from_env_with_prefix:
_url.:
- MLC_DOWNLOAD_URL
env:
MLC_DOWNLOAD_SRC: mlcommons
rclone:
group: download-tool
add_deps_recursive:
dae:
tags: _rclone
default: true
dry-run:
group: run-mode
env:
MLC_DOWNLOAD_MODE: dry
dry-run,rclone:
env:
MLC_DOWNLOAD_EXTRA_OPTIONS: --dry-run
1 change: 1 addition & 0 deletions script/get-ml-model-bevformer/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#!/bin/bash
9 changes: 9 additions & 0 deletions script/get-ml-model-deeplabv3_plus/COPYRIGHT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Copyright Notice

© 2025-2026 MLCommons. All Rights Reserved.

This file is licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License can be obtained at:

[Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is provided on an "AS IS" basis, without warranties or conditions of any kind, either express or implied. Please refer to the License for the specific language governing permissions and limitations under the License.
25 changes: 25 additions & 0 deletions script/get-ml-model-deeplabv3_plus/customize.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
from mlc import utils
import os


def preprocess(i):

os_info = i['os_info']

env = i['env']

if os_info['platform'] == "windows":
return {'return': 1, 'error': 'Script not supported in windows yet!'}

env['MLC_TMP_REQUIRE_DOWNLOAD'] = "yes"

return {'return': 0}


def postprocess(i):

env = i['env']

env['MLC_ML_MODEL_DEEPLABV3_PLUS_PATH'] = os.path.join(env['MLC_ML_MODEL_DEEPLABV3_PLUS_PATH'], env['MLC_ML_MODEL_FILENAME'])

return {'return': 0}
83 changes: 83 additions & 0 deletions script/get-ml-model-deeplabv3_plus/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
alias: get-ml-model-deeplabv3-plus
automation_alias: script
automation_uid: 5b4e0237da074764
cache: true
tags:
- get
- ml-model
- deeplab
- v3-plus
- deeplabv3-plus
uid: cfb2d53b9dbc4dc0
new_env_keys:
- MLC_ML_MODEL_DEEPLABV3_PLUS_PATH
print_env_at_the_end:
MLC_ML_MODEL_DEEPLABV3_PLUS_PATH: DeepLabV3+ checkpoint path
variations:
onnx:
group: model-format
default: true
env:
MLC_MODEL_FORMAT: onnx
MLC_MODEL_RCLONE_FILEPATH: model_checkpoint_deeplab/deeplabv3+_8mp.onnx
MLC_ML_MODEL_FILENAME: deeplabv3+_8mp.onnx
onnx_dynamic:
group: model-format
env:
MLC_MODEL_FORMAT: onnx
MLC_MODEL_RCLONE_FILEPATH: model_checkpoint_deeplab/deeplabv3+_dynamic.onnx
MLC_ML_MODEL_FILENAME: deeplabv3+_dynamic.onnx
pytorch:
group: model-format
env:
MLC_MODEL_FORMAT: pth
MLC_MODEL_RCLONE_FILEPATH: model_checkpoint_deeplab/latest_deeplabv3plus_resnet50_cognata_os16_it100000.pth
MLC_ML_MODEL_FILENAME: latest_deeplabv3plus_resnet50_cognata_os16_it100000.pth
mlc:
group: download-src
default: true
prehook_deps:
- tags: get,rclone
enable_if_env:
MLC_TMP_REQUIRE_DOWNLOAD:
- yes
- tags: get,rclone-config,_config-name.cognata
force_cache: true
enable_if_env:
MLC_TMP_REQUIRE_DOWNLOAD:
- yes
env:
MLC_RCLONE_DRIVE_FOLDER_ID: 1u5FDoeXHVtDrd4zClE47Gmyr7iLFidz1
- enable_if_env:
MLC_TMP_REQUIRE_DOWNLOAD:
- 'yes'
env:
MLC_DOWNLOAD_FINAL_ENV_NAME: MLC_ML_MODEL_DEEPLABV3_PLUS_PATH
MLC_EXTRACT_FINAL_ENV_NAME: MLC_ML_MODEL_DEEPLABV3_PLUS_PATH
MLC_DOWNLOAD_URL: 'mlc-cognata:mlc_cognata_dataset/<<<MLC_MODEL_RCLONE_FILEPATH>>>'
MLC_DOWNLOAD_EXTRA_OPTIONS: ' --include '
extra_cache_tags: ml,model,deeplabv3,plus
force_cache: true
names:
- dae
tags: download-and-extract
force_env_keys:
- MLC_OUTDIRNAME
update_tags_from_env_with_prefix:
_url.:
- MLC_DOWNLOAD_URL
env:
MLC_DOWNLOAD_SRC: mlcommons
rclone:
group: download-tool
add_deps_recursive:
dae:
tags: _rclone
default: true
dry-run:
group: run-mode
env:
MLC_DOWNLOAD_MODE: dry
dry-run,rclone:
env:
MLC_DOWNLOAD_EXTRA_OPTIONS: --dry-run
2 changes: 2 additions & 0 deletions script/get-ml-model-deeplabv3_plus/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash

9 changes: 9 additions & 0 deletions script/get-ml-model-ssd-resnet50/COPYRIGHT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Copyright Notice

© 2025-2026 MLCommons. All Rights Reserved.

This file is licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License can be obtained at:

[Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is provided on an "AS IS" basis, without warranties or conditions of any kind, either express or implied. Please refer to the License for the specific language governing permissions and limitations under the License.
25 changes: 25 additions & 0 deletions script/get-ml-model-ssd-resnet50/customize.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
from mlc import utils
import os


def preprocess(i):

os_info = i['os_info']

env = i['env']

if os_info['platform'] == "windows":
return {'return': 1, 'error': 'Script not supported in windows yet!'}

env['MLC_TMP_REQUIRE_DOWNLOAD'] = "yes"

return {'return': 0}


def postprocess(i):

env = i['env']

env['MLC_ML_MODEL_SSD_PATH'] = os.path.join(env['MLC_ML_MODEL_SSD_PATH'], env['MLC_ML_MODEL_FILENAME'])

return {'return': 0}
77 changes: 77 additions & 0 deletions script/get-ml-model-ssd-resnet50/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
alias: get-ml-model-ssd-resnet50
automation_alias: script
automation_uid: 5b4e0237da074764
cache: true
tags:
- get
- ml-model
- ssd
- resnet50
- ssd-resnet50
uid: acaa4c330a5a42c5
new_env_keys:
- MLC_ML_MODEL_SSD_PATH
print_env_at_the_end:
MLC_ML_MODEL_SSD_PATH: SSD checkpoint path
variations:
onnx:
group: model-format
default: true
env:
MLC_MODEL_FORMAT: onnx
MLC_MODEL_RCLONE_FILEPATH: model_checkpoint_ssd/ssd_resnet50.onnx
MLC_ML_MODEL_FILENAME: ssd_resnet50.onnx
pytorch:
group: model-format
env:
MLC_MODEL_FORMAT: pth
MLC_MODEL_RCLONE_FILEPATH: model_checkpoint_ssd/baseline_8MP_ss_scales_fm1_5x5_all_ep60.pth
MLC_ML_MODEL_FILENAME: baseline_8MP_ss_scales_fm1_5x5_all_ep60.pth
mlc:
group: download-src
default: true
prehook_deps:
- tags: get,rclone
enable_if_env:
MLC_TMP_REQUIRE_DOWNLOAD:
- yes
- tags: get,rclone-config,_config-name.cognata
force_cache: true
enable_if_env:
MLC_TMP_REQUIRE_DOWNLOAD:
- yes
env:
MLC_RCLONE_DRIVE_FOLDER_ID: 1u5FDoeXHVtDrd4zClE47Gmyr7iLFidz1
- enable_if_env:
MLC_TMP_REQUIRE_DOWNLOAD:
- 'yes'
env:
MLC_DOWNLOAD_FINAL_ENV_NAME: MLC_ML_MODEL_SSD_PATH
MLC_EXTRACT_FINAL_ENV_NAME: MLC_MLC_MODEL_SSD_PATH
MLC_DOWNLOAD_URL: 'mlc-cognata:mlc_cognata_dataset/<<<MLC_MODEL_RCLONE_FILEPATH>>>'
MLC_DOWNLOAD_EXTRA_OPTIONS: ' --include '
extra_cache_tags: ml,model,ssd,resnet50
force_cache: true
names:
- dae
tags: download-and-extract
force_env_keys:
- MLC_OUTDIRNAME
update_tags_from_env_with_prefix:
_url.:
- MLC_DOWNLOAD_URL
env:
MLC_DOWNLOAD_SRC: mlcommons
rclone:
group: download-tool
add_deps_recursive:
dae:
tags: _rclone
default: true
dry-run:
group: run-mode
env:
MLC_DOWNLOAD_MODE: dry
dry-run,rclone:
env:
MLC_DOWNLOAD_EXTRA_OPTIONS: --dry-run
1 change: 1 addition & 0 deletions script/get-ml-model-ssd-resnet50/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#!/bin/bash
Loading