Open mariiak2021 opened 1 year ago
Hi @jordis-ai2 @Lucaweihs @mattdeitke can someone help please? :)
Hi @mariiak2021 ,
It looks like the floor plan generation function does leave some empty cells in edge cases. A quick workaround is to ensure that the room_id
used in select_outdoor_openings
is never the EMPTY_ROOM_ID
.
I linked a PR with the workaround, but we should ensure floor plans don't include empty cells. I'll check with @mattdeitke .
Hi @jordis-ai2 The workaround is not fully working. The new error appear with walls this time:
multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
File "/home/mkhan/.conda/envs/pr/lib/python3.9/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/home/mkhan/.conda/envs/pr/lib/python3.9/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/home/mkhan/pr/scripts/generate_procthor_10k_dataset.py", line 63, in generate_house
house, _ = house_generator.sample()
File "/home/mkhan/pr/procthor/generation/__init__.py", line 236, in sample
gfs.add_exterior_walls(
File "/home/mkhan/pr/procthor/generation/exterior_walls.py", line 42, in default_add_exterior_walls
house_wall = house_walls[wall_id]
KeyError: 'wall|0|1.90|3.81|3.81|3.81'
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/mkhan/pr/scripts/generate_procthor_10k_dataset.py", line 81, in <module>
r = p.map(generate_house, range(100_000))
File "/home/mkhan/.conda/envs/pr/lib/python3.9/multiprocessing/pool.py", line 364, in map
return self._map_async(func, iterable, mapstar, chunksize).get()
File "/home/mkhan/.conda/envs/pr/lib/python3.9/multiprocessing/pool.py", line 771, in get
raise self._value
KeyError: 'wall|0|1.90|3.81|3.81|3.81'
I see. In order to get you going, you can try to enclose the code in generate_house
in a try-except block.
Hi!
I'm trying to generate the dataset which will contain only 1-room houses. For that I have edited room_specs.py file by saving only 4 room specs available:
During the generation process after the random number of generated houses I'm encountering an error like:
@mattdeitke Can you please help to understand what can cause it or what's wrong with my set up?