Out-of-Bounds Indices in Scene 12kitchen and Missing Annotations in Scene 13bathroom
#1
by
SizheZ
- opened
Thank you for your excellent work and for providing this dataset! I encountered a couple of issues when trying to visualize the data:
Scene 12kitchen
In the annotations file (FunGraph3D.annotations.json), some indices exceed the total number of points (2,109,537).
Scene 13bathroom
There are no elements for this scene in FunGraph3D.annotations.json.
Below is the code I used to check each scene:
import json
from plyfile import PlyData
import trimesh
scene_names = [
'0kitchen', '1bathroom', '2livingroom', '3kitchen',
'4livingroom', '5kitchen', '6kitchen', '7bedroom',
'8bathroom', '9bedroom', '10kitchen', '11bedroom',
'12kitchen', '13bathroom'
]
with open("./FunGraph3D/FunGraph3D/FunGraph3D.annotations.json") as f:
data = json.load(f)
for scene in scene_names:
plydata = PlyData.read(f"./FunGraph3D/FunGraph3D/{scene}/{scene}.ply")
n_header = plydata['vertex'].count
print(scene, n_header)
mesh = trimesh.load(f"./FunGraph3D/FunGraph3D/{scene}/{scene}.ply", process=False)
scene_annos = [anno for anno in data if anno["scene_id"] == scene]
print("This scene has", len(scene_annos), "items")
for anno in scene_annos:
if anno["indices"][-1] > n_header:
print(anno["indices"][-1], ">", n_header)
Output:
12kitchen 2109537
This scene has 28 items
2242950 > 2109537
2316252 > 2109537
2359329 > 2109537
2323179 > 2109537
2117995 > 2109537
2376459 > 2109537
2117374 > 2109537
2211723 > 2109537
2117209 > 2109537
2244653 > 2109537
2308538 > 2109537
2120495 > 2109537
2376831 > 2109537
2377397 > 2109537
2237419 > 2109537
2305747 > 2109537
2306137 > 2109537
2306880 > 2109537
2356367 > 2109537
2370175 > 2109537
2375890 > 2109537
2364311 > 2109537
2374164 > 2109537
2373518 > 2109537
2377332 > 2109537
2377294 > 2109537
2376196 > 2109537
2367437 > 2109537
13bathroom 1939755
This scene has 0 items
I found that the "scene_id" in "FunGraph3D.annotations.json" are :
['0kitchen', '1bathroom', '2livingroom', '3kitchen', '4livingroom', '5kitchen', '7kitchen', '9bedroom', '10bathroom', '11bedroom', '12kitchen', '13bedroom', '14kitchen', '15bathroom', 'extra_lab']
While the dataset includes:
['0kitchen', '1bathroom', '2livingroom', '3kitchen', '4livingroom', '5kitchen', '6kitchen', '7bedroom','8bathroom', '9bedroom', '10kitchen', '11bedroom', '12kitchen', '13bathroom']
After remapping the scene names, everything works correctly.
SizheZ
changed discussion status to
closed
We will fix this recently~ Thanks for the issue!
Updated the annotations.