question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Semantic annotations not getting loaded

See original GitHub issue

Hi, I am trying to visualize an ObjectNav agent but there seems to be an error in TopDownMap measure when it is trying to draw goals:

File ".../habitat-challenge-dev/habitat/tasks/nav/nav.py", line 784, in _draw_goals_aabb
    sem_scene.objects[object_id].id.split("_")[-1]
IndexError: list index out of range

Seems like semantic annotations are not getting loaded but I have the complete dataset.

[22:35:57:534470]:[Sim] Simulator.cpp(432)::instanceStageForSceneAttributes : Successfully loaded stage named : habitat-challenge-data/data/scene_datasets/hm3d/val/00839-zt1RVoi7PcG/zt1RVoi7PcG.basis.glb
[22:35:57:534517]:[Sim] Simulator.cpp(464)::instanceStageForSceneAttributes :
---
The active scene does not contain semantic annotations : activeSemanticSceneID_ = 0
---

Am I missing something here?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:21 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
srama2512commented, Mar 23, 2022

@nnsriram97 - I was able to successfully evaluate the ddppo baseline checkpoint on HM3D minival with video saving. It is possible that the issue may be with the conda installation. We’re looking into it. In the meanwhile, here are the steps I took for evaluation (NOTE: I’m not loading semantic annotations here):

  • Install challenge-2022 branch of habitat-lab

  • Install challenge-2022 branch of habitat-sim from source (see here)

    python setup.py install --headless --with-cuda
    
  • Make sure that HM3D scenes, semantics, and ObjectNav datasets are downloaded in <habitat-lab-path>/data

  • Download ddppo checkpoint

cd <habitat-lab-path>
mkdir -p experiments/ddppo
cd experiments/ddppo
EXPT_DIR=$PWD
wget https://dl.fbaipublicfiles.com/habitat/data/baselines/v1/ddppo_objectnav_habitat2022_challenge_baseline_v1.pth
  • Run baseline evaluation
cd <habitat-lab-path>

python habitat_baselines/run.py \
    --exp-config habitat_baselines/config/objectnav/ddppo_objectnav_hm3d.yaml \
    --run-type eval \
    EVAL.SPLIT "val_mini" \
    EVAL_CKPT_PATH_DIR $EXPT_DIR/ddppo_objectnav_habitat2022_challenge_baseline_v1.pth \
    NUM_ENVIRONMENTS 2 \
    TENSORBOARD_DIR $EXPT_DIR/eval_minival \
    LOG_FILE $EXPT_DIR/log_eval_minival.txt \
    VIDEO_OPTION "['disk']" \
    VIDEO_DIR $EXPT_DIR/video_minival
1reaction
arjung128commented, Apr 24, 2022

@xuai05 I’m getting this when I install habitat-sim with conda install habitat-sim-challenge-2022 -c conda-forge -c aihabitat. It seems to go away when I install habitat-sim with conda install habitat-sim withbullet headless -c conda-forge -c aihabitat. But with this workaround, the semantic annotations don’t seem to get downloaded…

Read more comments on GitHub >

github_iconTop Results From Across the Web

facebookresearch/habitat-lab - no semantic annotations - GitHub
I am playing around with this demo tutorial https://aihabitat.org/docs/habitat-lab/habitat-lab-demo.html, but I can't get similar results shown ...
Read more >
semantic web - OWLAPI not returning annotations and instances
The problem is that instances of class and class annotations included in imported ontology are not retrieved and returned.
Read more >
What is Semantic Annotation | Ontotext Fundamentals
Semantic annotation is the process of tagging documents with relevant concepts. The documents are enriched with metadata: references that link the content ...
Read more >
Spring Framework Annotations
In this post I review the Java annotations which are commonly used to configure behaviors in ... Services and components are not loaded...
Read more >
4.11 Annotation-based configuration - Spring
This annotation simply indicates that the affected bean property must be populated at configuration time: either through an explicit property value in a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found