Skip to content

AssertionError: Unable to CreateHouse! #47

@KingxXxCode

Description

@KingxXxCode

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_SPEC_SAMPLER
)
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions