ai2thor
ai2thor copied to clipboard
Simulator stuck while resetting the scene
Hi,
I'm now testing my code based on ALFRED and have some problems and suffering now.. It would be very thankful if someone helps me
The problem function is as follow and the version of AI2THOR is 2.1.0
def reset(self, scene_name_or_num,
grid_size=constants.AGENT_STEP_SIZE / constants.RECORD_SMOOTHING_FACTOR,
camera_y=constants.CAMERA_HEIGHT_OFFSET,
render_image=constants.RENDER_IMAGE,
render_depth_image=constants.RENDER_DEPTH_IMAGE,
render_class_image=constants.RENDER_CLASS_IMAGE,
render_object_image=constants.RENDER_OBJECT_IMAGE,
visibility_distance=constants.VISIBILITY_DISTANCE,
silent=False):
'''
reset scene and task states
'''
if not silent:
print("Resetting ThorEnv")
if type(scene_name_or_num) == str:
scene_name = scene_name_or_num
else:
scene_name = 'FloorPlan%d' % scene_name_or_num
super().reset(scene_name)
event = super().step(dict(
action='Initialize',
gridSize=grid_size,
cameraY=camera_y,
renderImage=render_image,
renderDepthImage=render_depth_image,
renderClassImage=render_class_image,
renderObjectImage=render_object_image,
visibility_distance=visibility_distance,
makeAgentsVisible=False,
))
The line stucks is event = super().step(dict(
It gets self.last_event = queue_get(self.request_queue)
in ai2thor controller and stuck in res = que.get(block=True, timeout=0.5)
from server.py
The log that code stucks is as follow.
It would be appreciate if you help
I have the similar issues.Have you a good solution for the issues?It stucks at Resetting ThorEnv.
Hi I faced the similar issues here. I am using version 2.1.0 and tested on both MacOS and Ubuntu 20 (without GPU). Reset action works for me and I can reset to any valid rooms. But the program got stuck whenever I execute an action. In fact, I can only execute a single action like 'LookDown' or 'LookUp' and I can see it indeed works, but after that, the Unity window doesn't change at all.
I followed this official documents but no luck: https://allenai.github.io/ai2thor-v2.1.0-documentation/examples
Does anyone have any solution? It seems that the 2.1.0 version is a nightmare for many people...
Sorry for late reply Maybe the the link below may help you!
https://github.com/alexpashevich/E.T./issues/8