dataset.md
November 22, 2023 ยท View on GitHub
Data preparation
Since this code is based on ScanRefer, you can use the same 3D features. Please also refer to the ScanRefer data preparation.
-
Download the ScanQA dataset under
data/scanqa/.Dataset format
"scene_id": [ScanNet scene id, e.g. "scene0000_00"], "object_id": [ScanNet object ids (corresponds to "objectId" in ScanNet aggregation file), e.g. "[8]"], "object_names": [ScanNet object names (corresponds to "label" in ScanNet aggregation file), e.g. ["cabinet"]], "question_id": [...], "question": [...], "answers": [...], -
Download the preprocessed GLoVE embeddings file and put it under
data/. -
Go to
code/minsu3dand complete the last 2 steps.cd code/minsu3d -
(From minsu3d, must be in
code/minsu3d) Download the ScanNet v2 dataset. To acquire the access to the dataset, please refer to their instructions. You will get adownload-scannet.pyscript after your request is approved:# about 10.7GB in total python download-scannet.py -o data/scannet --type _vh_clean_2.ply python download-scannet.py -o data/scannet --type _vh_clean.aggregation.json python download-scannet.py -o data/scannet --type _vh_clean_2.0.010000.segs.json -
(From minsu3d, must be in
code/minsu3d) Preprocess the data, it converts original meshes and annotations to.pthdata:cd data/scannet python prepare_all_data.py data=scannet +raw_scan_path={PATH_TO_SCANNET_V2}/scansThen prepare the test scenes:
python prepare_all_data.py data=scannet +raw_scan_path={PATH_TO_SCANNET_V2}/scans_test -
Once you are done pretraining SoftGroup, move the ScanNet data from
code/minsu3d/data/scannettodata/scannet. For training and validation we use the precomputed SoftGroup data indata/precompute_softgroup_databut for inference we use the original scene data.