Closed linQian99 closed 6 months ago
hi,
It seems that your pkl
file is not generated correctly and does not containsuperpoints_filename
.
please check https://github.com/zyrant/SPGroup3D/blob/d6ee2ddb9c674609a0dd66026f395d246c3899ad/tools/data_converter/scannet_data_utils.py#L118 to https://github.com/zyrant/SPGroup3D/blob/d6ee2ddb9c674609a0dd66026f395d246c3899ad/tools/data_converter/scannet_data_utils.py#L126, which are used to generate pts_superpoints_path
.
the file in pkl
should like this
{'point_cloud': {'num_features': 6, 'lidar_idx': 'scene0191_00'},
'pts_path': 'points/scene0191_00.bin',
'pts_superpoints_path': 'superpoints/scene0191_00.bin',
'pts_instance_mask_path': 'instance_mask/scene0191_00.bin',
'pts_semantic_mask_path': 'semantic_mask/scene0191_00.bin',
'annos': {'gt_num': 7, 'name': array(['door', 'table', 'window', 'garbagebin', 'chair', 'window',
'window'], dtype='<U10'), 'location': array([[ 1.9491133 , 2.5492249 , 1.07194896],....
I will update Readme
soon and upload my pkl
file.
Thank you for your detailed explanation and patience! I see, it should be because of the process of creating pkl files. I tried to create pkl files with two different environment. The first one for TR3D could create but second env for SPgroup3D will show following errors:
(SP38) lin@aorus:/media/lin/LinQianROG/Ubuntu/SPGroup3D$ python tools/create_data.py scannet --root-path ./data/scannet --out-dir ./data/scannet --extra-tag scannetc Traceback (most recent call last): File "tools/create_data.py", line 5, in <module> from tools.data_converter import indoor_converter as indoor File "/media/lin/LinQianROG/Ubuntu/SPGroup3D/tools/data_converter/indoor_converter.py", line 9, in <module> from tools.data_converter.scannet_md40_data_utils import ScanNetData_md40, ScanNetSegData_md40 ModuleNotFoundError: No module named 'tools.data_converter.scannet_md40_data_utils'
It seems that data_converter folder is lack of scannet_md40_data_utils.py which is shown below.
hi
Ops. This was a mistake when I cleaned up the code. You just need to comment on the code related to scannet_md40
.
best wishes.
Thank you for your reply! Now it works.
Best Regards
Hi, thank you for your great work! I have a problem about preparing scannet data for superpoints. I firstly put Superpoints folder prepared scannet data and run following scripts to prepare datasets.
The folder structure shows below. I think it should be correct. ├── batch_load_scannet_data.py ├── batch_load_scannet_data_superpoint.py ├── download-scannet.py ├── extract_posed_images.py ├── instance_mask ├── load_scannet_data.py ├── load_scannet_data_superpoint.py ├── meta_data ├── points ├── posed_images ├── pycache ├── README.md ├── scannet_infos_test.pkl ├── scannet_infos_train.pkl ├── scannet_infos_val.pkl ├── scannet_instance_data ├── scannet_utils.py ├── scans -> /media/lin/LinQ4T/Dataset/scannet/scans ├── scans_test -> /media/lin/LinQ4T/Dataset/scannet/scans_test ├── seg_info ├── semantic_mask ├── superpoints └── tasks -> /media/lin/LinQ4T/Dataset/scannet/tasks
The message shows the superpoints have some problems, could you please help me to see is the process of preparing the dataset incorrect? Thank you very much.
Error output: