-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Script crash during dataset preparation #5
Comments
Hello, |
When I run Habitat with a command like: habitat-viewer mL8ThkuaVTM.glb I don't encounter any problems. However, when I run the script, I get the following error at the end: |
@abwerby but I've added to the sim.close() after the See the code snippet: ...
for pose in pbar:
pbar.set_description(f"saving frame {steps}/{len(poses_list) + 1}")
agent = sim.get_agent(0)
agent_state = agent.get_state()
agent_state.sensor_states["color_sensor"].position = pose[:3]
agent_state.sensor_states["color_sensor"].rotation = pose[3:]
agent_state.sensor_states["depth_sensor"].position = pose[:3]
agent_state.sensor_states["depth_sensor"].rotation = pose[3:]
agent_state.sensor_states["semantic"].position = pose[:3]
agent_state.sensor_states["semantic"].rotation = pose[3:]
agent.set_state(agent_state, reset_sensors=True, infer_sensor_states=False)
obs = sim.get_sensor_observations(0)
rgb = obs["color_sensor"]
depth = obs["depth_sensor"]
depth = ((depth / 10) * 255).astype(np.uint8)
semantic = obs["semantic"]
# cv2.imshow("rgb", rgb)
# cv2.imshow("depth", depth)
# cv2.waitKey()
save_obs(save_dir, sim_settings, obs, pose, steps)
steps += 1
sim.close() |
thank you for sharing your solution. |
TL;DR
I am getting the following error during Habitat Matterport dataset prep:
Steps to reproduce:
and prepared it as described in the
README.md
.See the image:
I've modified https://github.com/hovsg/HOV-SG/blob/main/data/habitat/gen_hm3dsem_from_poses.py#L84 and https://github.com/hovsg/HOV-SG/blob/main/data/habitat/gen_hm3dsem_from_poses.py#L85 from "quite" to "verbose" in order to get more detailed error message.
After that, I executed the following command:
Results:
Script have been executed for some time, but in the end, it failed with the following error:
Generated data looks like this:
Questions
Have you seen similar problems? Could you help figure out what might be the root cause of the issue? Thanks.
By the way, it seems like it might be a habitat problem. Could you specify the version of habitat you are using?
The text was updated successfully, but these errors were encountered: