allenai / procthor

🏘️ Scaling Embodied AI by Procedurally Generating Interactive 3D Houses
https://procthor.allenai.org/
Apache License 2.0
241 stars 20 forks source link

AssertionError: Unable to CreateHouse! #47

Open KingxXxCode opened 2 months ago

KingxXxCode commented 2 months ago

i am facing an issue tying to run the basic example.py scrip

`from procthor.generation import PROCTHOR10K_ROOM_SPEC_SAMPLER, HouseGenerator

house_generator = HouseGenerator( split="train", seed=42, room_spec_sampler=PROCTHOR10K_ROOM_SPECSAMPLER ) house, = house_generator.sample() house.validate(house_generator.controller)

house.to_json("temp.json") `

#error details `--------------------------------------------------------------------------- AssertionError Traceback (most recent call last) Cell In[1], line 6 1 from procthor.generation import PROCTHOR10K_ROOM_SPEC_SAMPLER, HouseGenerator 3 house_generator = HouseGenerator( 4 split="train", seed=42, room_spec_sampler=PROCTHOR10K_ROOM_SPEC_SAMPLER 5 ) ----> 6 house, _ = house_generator.sample() 7 house.validate(house_generator.controller) 9 house.to_json("temp.json")

File ~/anaconda3/envs/ai2thor2/lib/python3.8/site-packages/procthor/generation/init.py:209, in HouseGenerator.sample(self, partial_house, return_partial_houses) 207 if partial_house.next_sampling_stage <= NextSamplingStage.SMALL_OBJS: 208 with advance_and_record_partial(partial_house): --> 209 add_small_objects( 210 partial_house=partial_house, 211 rooms=partial_house.rooms, 212 split=self.split, 213 controller=self.controller, 214 ) 215 small_objects = [ 216 *partial_house.objects[len(floor_objects) + len(wall_objects) :] 217 ] 218 randomize_object_colors(objects=small_objects) ... ---> 85 assert event, "Unable to CreateHouse!" 86 controller.step(action="SetObjectFilter", objectIds=[]) 88 # NOTE: Get the objects in the room.

AssertionError: Unable to CreateHouse!`

#System info :

22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Apr 4 14:39:20 UTC 2 x86_64 x86_64 x86_64 GNU/Linux