Skip to content

For an ObjectNav task, where is the ObjectGoal computation code? #2096

Closed Answered by ResearcherYan
ResearcherYan asked this question in Q&A
Discussion options

You must be logged in to vote

I think I found where the ObjectGoal is obtained. For MP3D dataset, the ObjectGoal for an episode is not computed. Instead, it is directly loaded from the json file inside the dataset folder. It's implemented in the habitat-lab/habitat/datasets/object_nav/object_nav_dataset.py:

@registry.register_dataset(name="ObjectNav-v1")
class ObjectNavDatasetV1(PointNavDatasetV1):
    ...
    def from_json(
        self, json_str: str, scenes_dir: Optional[str] = None
    ) -> None:
        deserialized = json.loads(json_str)
        ...
        for k, v in deserialized["goals_by_category"].items():
            self.goals_by_category[k] = [self.__deserialize_goal(g) for g in v]
        for i, episode in

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ResearcherYan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant