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.

SSD File Naming Issue

See original GitHub issue

Hi, I faced with a problem with semantic while executing config for the challenge. Here is the code:

_config = config_env.TASK_CONFIG
_dataset = make_dataset(
                id_dataset=_config.DATASET.TYPE, config=_config.DATASET)
_episodes = (_dataset.episodes
            if _dataset
            else cast(List[Episode], []))
iter_option_dict = {
            k.lower(): v
            for k, v in _config.ENVIRONMENT.ITERATOR_OPTIONS.items()
        }
_episode_iterator = _dataset.get_episode_iterator(
            **iter_option_dict)
_config.defrost()
_config.SIMULATOR.SCENE = _dataset.episodes[0].scene_id
_config.freeze()
number_of_episodes = len(_dataset.episodes)
_sim = make_sim(id_sim=_config.SIMULATOR.TYPE, config=_config.SIMULATOR)
_task = make_task(
            _config.TASK.TYPE,
            config=_config.TASK,
            sim=_sim,
            dataset=_dataset)

And here is the error:

2022-03-24 14:03:30,954 Initializing dataset ObjectNav-v1
2022-03-24 14:03:31,779 initializing sim Sim-v0
[14:03:31:896489]:[Assets] ResourceManager.cpp(345)::loadSemanticSceneDescriptor : SSD File Naming Issue! Neither SceneInstanceAttributes-provided name : /home/kirill/habitat-lab/data/scene_datasets/hm3d/val/00800-TEEsavR23oF/TEEsavR23oF.basis.scn  nor constructed filename : /home/kirill/habitat-lab/data/scene_datasets/hm3d/val/00800-TEEsavR23oF/info_semantic.json exist on disk.
[14:03:33:168933]:[Sim] Simulator.cpp(464)::instanceStageForSceneAttributes : 
---
The active scene does not contain semantic annotations : activeSemanticSceneID_ = 0  
---
2022-03-24 14:03:33,285 Initializing task ObjectNav-v1

According to this message, a *basis.scn or *info_semantic.json file is needed. How can I get these files?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:17

github_iconTop GitHub Comments

2reactions
KirillMouravievcommented, Mar 29, 2022

I realized that file hm3d_annotated_basis.scene_dataset_config.json was not in /home/kirill/habitat-lab/data/scene_datasets/hm3d directory. After copying it into the directory, semantic worked. @jturner65 @srama2512 Thank you for your help!

1reaction
KirillMouravievcommented, Mar 29, 2022

Yes, hm3d_annotated_basis.scene_dataset_config.json file is located in /home/kirill/habitat-lab/data/scene_datasets/hm3d directory. Here is the file (zipped): hm3d_annotated_val_basis.scene_dataset_config.json.gz

I executed the following code:

import habitat_sim

path_to_hm3d = "/home/kirill/habitat-lab/data/scene_datasets/hm3d"
backend_cfg = habitat_sim.SimulatorConfiguration()
backend_cfg.scene_id = f"{path_to_hm3d}/val/00876-mv2HUxq3B53/mv2HUxq3B53.basis.glb"
#backend_cfg.scene_id = "mv2HUxq3B53"
backend_cfg.scene_dataset_config_file = f"{path_to_hm3d}/hm3d_annotated_basis.scene_dataset_config.json"

sem_cfg = habitat_sim.CameraSensorSpec()
sem_cfg.uuid = "semantic"
sem_cfg.sensor_type = habitat_sim.SensorType.SEMANTIC

agent_cfg = habitat_sim.agent.AgentConfiguration()
agent_cfg.sensor_specifications = [sem_cfg]

sim_cfg = habitat_sim.Configuration(backend_cfg, [agent_cfg])
sim = habitat_sim.Simulator(sim_cfg)

print("# objects: {}".format(len(sim.semantic_scene.objects)))

The full log is log.txt

Read more comments on GitHub >

github_iconTop Results From Across the Web

File Naming Tips - External Hard Drive | How to Archive
Effectively locate and pull data with these file naming guidelines from How to Archive. Organize any external hard drive storage with these ...
Read more >
Getting Destination Path Too Long Copying Files ... - TechNet
Windows 10 Pro x64. Copying was initiated by dragging a folder from the root of the source drive to the root of the...
Read more >
name is too long or includes some characters that are invalid ...
I have an issue with a hard drive I had removed from my laptop: MacBook Pro 17" (Mid 2010). It was working perfectly,...
Read more >
How to Fix All SSD Problems on Windows and Mac
Fix 1: Make sure that SSD is not Write-protected ... Most of the solid-state drives come with a write-protection feature. As the name...
Read more >
big sur reading file names wrong on external hard drive
Now, I am having the above issue. To use the above example, it will correctly find all files named "bike.jpg," but clicking them...
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