Skip to content

fix: pass depth_anything_checkpoint from config to RGBDBackbone#330

Open
PurpleSand123 wants to merge 1 commit intoInternRobotics:mainfrom
PurpleSand123:fix/pass-depth-checkpoint-to-backbone
Open

fix: pass depth_anything_checkpoint from config to RGBDBackbone#330
PurpleSand123 wants to merge 1 commit intoInternRobotics:mainfrom
PurpleSand123:fix/pass-depth-checkpoint-to-backbone

Conversation

@PurpleSand123
Copy link
Copy Markdown

Summary

  • Forward depth_anything_checkpoint from model_cfg['il'] to RGBDBackbone in NavDPNet.__init__
  • Previously RGBDBackbone always used its hardcoded default path (checkpoints/depth_anything_v2_vits.pth), ignoring the config value
  • This broke in containerized environments (e.g. Docker with a different working directory) where the relative default path doesn't resolve correctly

Test plan

  • Verify NavDP eval works with depth_anything_checkpoint set in config
  • Verify backward compatibility when depth_anything_checkpoint is not set (falls back to existing default)

🤖 Generated with Claude Code

NavDPNet.__init__ was constructing RGBDBackbone without forwarding the
depth_anything_checkpoint from model_cfg, forcing it to fall back to a
hardcoded relative path default. This breaks in containerized environments
where the working directory differs from the repo root.

Read depth_anything_checkpoint from model_cfg['il'] and pass it through
to RGBDBackbone when present, preserving the existing default when not set.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
PurpleSand123 added a commit to worv-ai/CostNav that referenced this pull request Apr 6, 2026
…l configs

- Unify all three configs (eval, processing, training) to use
  checkpoints/depth_anything_v2_metric_vkitti_vits.pth
- Remove fallback candidate search in process_mediaref_to_navdp.py;
  require explicit config path
- Require depth_anything_checkpoint in navdp_policy_node.py (no default)
- Add monkey-patch in navdp_agent.py and train_navdp.py to inject
  config checkpoint into RGBDBackbone, working around InternNav's
  hardcoded default (see InternRobotics/InternNav#330)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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