Skip to content
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

AssertionError: Unable to CreateHouse! #47

Open
KingxXxCode opened this issue May 5, 2024 · 0 comments
Open

AssertionError: Unable to CreateHouse! #47

KingxXxCode opened this issue May 5, 2024 · 0 comments

Comments

@KingxXxCode
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant