Skip to content

Conversation

@kew6688
Copy link
Collaborator

@kew6688 kew6688 commented Oct 31, 2025

Description:
This PR fixes an import error in scripts/train/train.py in line17 caused by the recent dependency isolation refactor.
Previously, the script imported model directly, but after modularizing dependencies, that import is no longer valid.

Changes:

Replaced the outdated import model with explicit imports from each model submodule. Ensured compatibility with the new isolated dependency structure.

Update:
update habitat evaluation config dataset path to match current InternData-N1
Test with the latest documents. Ensured all scripts matching the dataset directory and guideline.

@kew6688 kew6688 requested a review from wzcai99 October 31, 2025 05:28
@kew6688 kew6688 requested a review from Tai-Wang October 31, 2025 06:10
from internnav.model.basemodel.cma.cma_policy import CMAModelConfig, CMANet
from internnav.model.basemodel.navdp.navdp_policy import NavDPModelConfig, NavDPNet
from internnav.model.basemodel.rdp.rdp_policy import RDPModelConfig, RDPNet
from internnav.model.basemodel.seq2seq.seq2seq_policy import (
Copy link
Collaborator

Choose a reason for hiding this comment

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

Recommend simplifying the "from xxxx" by adding init under the folder basemodel or cma/navdp...

@Tai-Wang Tai-Wang changed the title [Fix] fix train import bug [Fix] Fix the import bug in the training script Nov 3, 2025
@Tai-Wang Tai-Wang merged commit c48cdc2 into InternRobotics:main Nov 3, 2025
1 check passed
heyi301 pushed a commit to heyi301/InternNav that referenced this pull request Dec 16, 2025
* fix train import bug

* updated to latest doc; fix meaningless sys path append in train.py; fix habitat config dataset path

* update import in train.py
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