Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ CLAUDE.md

# artifacts
inference_results/
.rbyte_cache
.rbyte_cache*

.dprint.json

Expand Down
20 changes: 20 additions & 0 deletions config/benchmark_onnx.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# @package _global_

---
defaults:
- export: null
- _self_

data_dir: ${oc.env:HOME}/data/Niro122-HQ/2023-05-25--09-34-14
start_frame: 2910
num_episodes: 50
frame_step: 10
output: /tmp/rmind.csv
warmup: 1
image_size: null

# override per run, e.g.:
# onnx=/path/to/model.onnx wandb_model=yaak/rmind/model-XXXXXXXX:vN
# export=yaak/control_transformer/finetuned # apples-to-apples vs the ONNX export
onnx: null
wandb_model: null
7 changes: 7 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,13 @@ test *ARGS: generate-config
update-snapshots:
uv run python -m tests.scripts.update_snapshots

benchmark-onnx *ARGS: generate-config
LD_LIBRARY_PATH="$(find /nix/store -maxdepth 1 -name '*gcc-15*-lib' -type d -print -quit 2>/dev/null)/lib:${LD_LIBRARY_PATH:-}" \
uv run --group benchmark rmind-benchmark-onnx \
--config-path {{ justfile_directory() }}/config \
--config-name benchmark_onnx.yaml \
{{ ARGS }}

export-onnx *ARGS: generate-config
uv run \
--extra export \
Expand Down
2 changes: 1 addition & 1 deletion prek.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ hooks = [
repo = "https://github.com/codespell-project/codespell"
rev = "v2.4.2"
hooks = [
{ id = "codespell" },
{ id = "codespell", args = ["--ignore-words-list=drivr"] },
]

[[repos]]
Expand Down
13 changes: 13 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ dependencies = [
repo = "https://github.com/yaak-ai/rmind"

[project.scripts]
rmind-benchmark-onnx = "rmind.scripts.benchmark_onnx:main"
rmind-check-git = "rmind.scripts.check_git:main"
rmind-export-onnx = "rmind.scripts.export_onnx:main"
rmind-predict = "rmind.scripts.predict:main"
Expand Down Expand Up @@ -76,6 +77,13 @@ dev = [
"pudb>=2025.1.5",
"wat-inspector",
]
benchmark = [
"onnxruntime>=1.23.1",
"opencv-python-headless",
"pyproj>=3.6.0",
"tabulate>=0.9.0",
"wandb>=0.24.2",
]
check = [
"ruff>=0.15.18",
"ty>=0.0.52",
Expand Down Expand Up @@ -104,13 +112,18 @@ DEP002 = [
]
DEP003 = ["rmind"]
DEP004 = [
"cv2",
"onnxruntime",
"pyproj",
"tabulate",
"tensorrt",
]

[tool.deptry.package_module_name_map]
hydra-core = "hydra"
opencv-python-headless = "cv2"
tensordict-nightly = "tensordict"
tensorrt-cu13 = "tensorrt"
pytorch-lightning = [
"pytorch_lightning",
"lightning_fabric",
Expand Down
Loading
Loading