Skip to content

fix(PTv3): checkpoint load for testing#192

Merged
amadeuszsz merged 6 commits intotier4:mainfrom
amadeuszsz:fix/ptv3-test-checkpoint-load
Mar 13, 2026
Merged

fix(PTv3): checkpoint load for testing#192
amadeuszsz merged 6 commits intotier4:mainfrom
amadeuszsz:fix/ptv3-test-checkpoint-load

Conversation

@amadeuszsz
Copy link
Collaborator

@amadeuszsz amadeuszsz commented Mar 6, 2026

Summary

  • Fixes loading of checkpoint for test - it reverts to the original code as it was before.

  • Set spconv version to "2" in order to avoid implicit conversion in mmdet3d.

Signed-off-by: Amadeusz Szymko <amadeusz.szymko.2@tier4.jp>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a bug in TesterBase.build_model() where checkpoint state dict keys were being processed using self.keywords and self.replacement attributes that don't exist on the TesterBase class (they belong to the CheckpointLoader hook). The code is reverted to the original working logic that correctly handles the "module." prefix based on whether DDP (multi-GPU) is being used.

Changes:

  • Reverted the checkpoint key remapping logic in TesterBase.build_model() to correctly handle single-GPU vs. multi-GPU "module." prefix without referencing nonexistent instance attributes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@amadeuszsz amadeuszsz requested a review from mojomex March 9, 2026 01:59
amadeuszsz and others added 2 commits March 9, 2026 12:45
Signed-off-by: Amadeusz Szymko <amadeusz.szymko.2@tier4.jp>
Signed-off-by: Amadeusz Szymko <amadeusz.szymko.2@tier4.jp>
@amadeuszsz amadeuszsz requested a review from mojomex March 9, 2026 06:10
Copy link
Collaborator

@mojomex mojomex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fix works, but I'm not sure about the global "version" key. Other modules have their own version keys (not in PTv3 by the looks of it), and this could potentially cause unwanted side effects.

Fix is removing the explicit version setting.

amadeuszsz and others added 2 commits March 9, 2026 19:00
Signed-off-by: Amadeusz Szymko <amadeusz.szymko.2@tier4.jp>
Copy link
Collaborator

@mojomex mojomex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice solution, confirmed working.
Let's trigger docker build after this is merged.

@amadeuszsz amadeuszsz merged commit ce088f4 into tier4:main Mar 13, 2026
2 checks passed
@amadeuszsz amadeuszsz deleted the fix/ptv3-test-checkpoint-load branch March 13, 2026 14:35
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.

3 participants