Skip to content

v1.0.0-rc1: integrate BWM generation and fix NC state alignment - #16

Merged
WCJ-BERT merged 33 commits into
mainfrom
feat/bwm-integration
Dec 4, 2026
Merged

WCJ-BERT merged 33 commits into
mainfrom
feat/bwm-integration

Conversation

@WCJ-BERT

@WCJ-BERT WCJ-BERT commented Dec 4, 2026 •

Copy link
Copy Markdown
Collaborator

Pull Request

Description

Prepare the v1.0.0-rc1 integration candidate with a portable Behavior World Model (BWM) generation workflow and SimEngine-compatible scenario publication. Reject invalid attack goals, failed optimization, and discontinuous generated motion, and fix NC classification using stale object states.

This is a release candidate: current-head runtime and GPU validation remain pending.

Type of Change

  • New feature
  • Bug fix
  • Documentation update
  • Code refactoring
  • Test additions included in the committed BWM integration
  • Other: inference environment and CI runner configuration

Motivation and Context

BWM needs a reproducible path from scene selection through generation to scenarios consumable by SimEngine. Invalid terminal goals and optimizer fallbacks can produce abrupt trajectory boundaries. Separately, SimEngine NC previously combined contact-frame geometry with a first-seen object velocity, allowing the same contact to be classified differently across scoring windows.

Changes Made

  • Link the published BWM inference checkpoint from the usage guide, with its expected local path and instructions for updating an existing dataset download.
  • Add the BWM inference package, pinned environment, layered scenario configuration, and scripts/run_bwm.sh validate|generate|publish entrypoints.
  • Add scene filtering and generation budgets, compatible timestamps and ego poses, map-feature and drivable-area handling, and scenario publication.
  • Select attack vehicles from nearby candidates with complete history; require direction-compatible lane goals, successful optimization, and configurable motion continuity/velocity checks before export.
  • Resolve NC object state from the contact frame and align replay geometry/state indexing, while preserving constant-velocity prediction and the existing at-fault collision rules.
  • Document installation, generation, publication, and rollout fine-tuning; pin the lint and test workflow runners to Ubuntu 22.04.

Related Issues

No linked issue.

Testing

  • Passed: AST syntax parsing of all 75 changed Python files from the committed PR snapshot, without importing project modules.
  • Passed: git diff --check 804ba944..6beb0641 for the BWM and NC fix commits, and the documentation update's staged diff check.
  • Full-PR git diff --check origin/main...HEAD reports 707 trailing-whitespace/blank-EOF findings in 29 files, primarily from the imported BWM source; cleanup remains outstanding.
  • Not run for this candidate: unit tests, model inference, GPU generation, SimEngine closed-loop tests, or end-to-end publication/rollout validation. The current DSW has no GPU.
  • The PR contains the 16 previously committed BWM test files. The latest local edits to two test files and the new motion-validation test file are not included.

Performance Impact

NC replay indexing adds dictionaries of references to existing tracked objects; objects are not deep-copied per frame. Motion validation adds candidate checks and stricter rejection may reduce generation yield. Runtime and memory impact have not been benchmarked.

Documentation

  • Usage and installation documentation updated
  • README updated
  • Code comments updated
  • CHANGELOG/package versions updated for a formal release

Compatibility and Dependencies

Existing public SimEngine entrypoints remain unchanged. BWM uses its dedicated Python 3.9 / PyTorch 2.3 / CUDA 12.1 environment and pinned inference dependencies. Motion thresholds are provisional and require calibration on generated data. Existing staged scenarios are not revalidated by publishing; use a new scenario name for regeneration.

Checklist

  • Contribution guidelines and code of conduct reviewed
  • Static code and commit-scope review completed
  • Branch contains the latest fetched origin/main (13463cf1)
  • No merge conflicts with the fetched base
  • Current-head unit/runtime tests pass
  • GPU generation and closed-loop smoke checks completed

Additional Notes

v1.0.0-rc1 is the proposed candidate designation for this PR. This PR does not create a release/tag or bump the existing 0.1.0 package metadata.

NC still means no-at-fault collisions. Unconditional all-collision training-reward gating, including rear contact, is not implemented by this PR.

Select attackers from nearby candidates with complete history and choose direction-compatible lane goals. Reject failed trajectory optimization and validate generated motion before export, with configurable limits and updated usage documentation.

Validation: static checks only; runtime tests were not run.
Index replay objects by frame and use the contact sample for NC classification. Keep replay geometry and object state on the same sampling grid while preserving constant-velocity prediction and existing initial-object consumers.

Validation: static syntax checks, diff checks, and code review; runtime tests were not run.
@WCJ-BERT
WCJ-BERT marked this pull request as ready for review December 4, 2026 10:21
@WCJ-BERT
WCJ-BERT merged commit bd2b67e into main Dec 4, 2026
10 checks passed
@WCJ-BERT
WCJ-BERT deleted the feat/bwm-integration branch December 4, 2026 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant