allenai / allenai/procthor

AssertionError: Unable to CreateHouse!

未关闭
#47 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
472
派生
51
PR 合并指标
30 天内没有已合并 PR

描述

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](vscode-notebook-cell:?execution_count=1&line=6)
[1](vscode-notebook-cell:?execution_count=1&line=1) from procthor.generation import PROCTHOR10K_ROOM_SPEC_SAMPLER, HouseGenerator
[3](vscode-notebook-cell:?execution_count=1&line=3) house_generator = HouseGenerator(
[4](vscode-notebook-cell:?execution_count=1&line=4) split="train", seed=42, room_spec_sampler=PROCTHOR10K_ROOM_SPEC_SAMPLER
[5](vscode-notebook-cell:?execution_count=1&line=5) )
----> [6](vscode-notebook-cell:?execution_count=1&line=6) house, _ = house_generator.sample()
[7](vscode-notebook-cell:?execution_count=1&line=7) house.validate(house_generator.controller)
[9](vscode-notebook-cell:?execution_count=1&line=9) house.to_json("temp.json")

File [~/anaconda3/envs/ai2thor2/lib/python3.8/site-packages/procthor/generation/__init__.py:209](https://file+.vscode-resource.vscode-cdn.net/home/nprp/unity%20projects/sentis2/~/anaconda3/envs/ai2thor2/lib/python3.8/site-packages/procthor/generation/__init__.py:209), in HouseGenerator.sample(self, partial_house, return_partial_houses)
[207](https://file+.vscode-resource.vscode-cdn.net/home/nprp/unity%20projects/sentis2/~/anaconda3/envs/ai2thor2/lib/python3.8/site-packages/procthor/generation/__init__.py:207) if partial_house.next_sampling_stage <= NextSamplingStage.SMALL_OBJS:
[208](https://file+.vscode-resource.vscode-cdn.net/home/nprp/unity%20projects/sentis2/~/anaconda3/envs/ai2thor2/lib/python3.8/site-packages/procthor/generation/__init__.py:208) with advance_and_record_partial(partial_house):
--> [209](https://file+.vscode-resource.vscode-cdn.net/home/nprp/unity%20projects/sentis2/~/anaconda3/envs/ai2thor2/lib/python3.8/site-packages/procthor/generation/__init__.py:209) add_small_objects(
[210](https://file+.vscode-resource.vscode-cdn.net/home/nprp/unity%20projects/sentis2/~/anaconda3/envs/ai2thor2/lib/python3.8/site-packages/procthor/generation/__init__.py:210) partial_house=partial_house,
[211](https://file+.vscode-resource.vscode-cdn.net/home/nprp/unity%20projects/sentis2/~/anaconda3/envs/ai2thor2/lib/python3.8/site-packages/procthor/generation/__init__.py:211) rooms=partial_house.rooms,
[212](https://file+.vscode-resource.vscode-cdn.net/home/nprp/unity%20projects/sentis2/~/anaconda3/envs/ai2thor2/lib/python3.8/site-packages/procthor/generation/__init__.py:212) split=self.split,
[213](https://file+.vscode-resource.vscode-cdn.net/home/nprp/unity%20projects/sentis2/~/anaconda3/envs/ai2thor2/lib/python3.8/site-packages/procthor/generation/__init__.py:213) controller=self.controller,
[214](https://file+.vscode-resource.vscode-cdn.net/home/nprp/unity%20projects/sentis2/~/anaconda3/envs/ai2thor2/lib/python3.8/site-packages/procthor/generation/__init__.py:214) )
[215](https://file+.vscode-resource.vscode-cdn.net/home/nprp/unity%20projects/sentis2/~/anaconda3/envs/ai2thor2/lib/python3.8/site-packages/procthor/generation/__init__.py:215) small_objects = [
[216](https://file+.vscode-resource.vscode-cdn.net/home/nprp/unity%20projects/sentis2/~/anaconda3/envs/ai2thor2/lib/python3.8/site-packages/procthor/generation/__init__.py:216) *partial_house.objects[len(floor_objects) + len(wall_objects) :]
[217](https://file+.vscode-resource.vscode-cdn.net/home/nprp/unity%20projects/sentis2/~/anaconda3/envs/ai2thor2/lib/python3.8/site-packages/procthor/generation/__init__.py:217) ]
[218](https://file+.vscode-resource.vscode-cdn.net/home/nprp/unity%20projects/sentis2/~/anaconda3/envs/ai2thor2/lib/python3.8/site-packages/procthor/generation/__init__.py:218) randomize_object_colors(objects=small_objects)
...
---> [85](https://file+.vscode-resource.vscode-cdn.net/home/nprp/unity%20projects/sentis2/~/anaconda3/envs/ai2thor2/lib/python3.8/site-packages/procthor/generation/small_objects.py:85) assert event, "Unable to CreateHouse!"
[86](https://file+.vscode-resource.vscode-cdn.net/home/nprp/unity%20projects/sentis2/~/anaconda3/envs/ai2thor2/lib/python3.8/site-packages/procthor/generation/small_objects.py:86) controller.step(action="SetObjectFilter", objectIds=[])
[88](https://file+.vscode-resource.vscode-cdn.net/home/nprp/unity%20projects/sentis2/~/anaconda3/envs/ai2thor2/lib/python3.8/site-packages/procthor/generation/small_objects.py: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

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。