CoolFace
Datasetpublic

KevinHuang/Structured3D

Structured3D panorama dataset with BLIP3 text caption Missing data: Structured3D/scene_00212/2D_rendering/494/panorama/full/text_rawlight_blip3.txt Structured3D/scene_00411/2D_rendering/918447/panorama/full/text_rawlight_blip3.txt Structured3D/scene_00609/2D_rendering/159/panorama/full/text_rawlight_blip3.txt Structured3D/scene_01209/2D_rendering/4566/panorama/full/text_rawlight_blip3.txt Structured3D/scene_01210/2D_rendering/204/panorama/full/text_rawlight_blip3.txt… See the full description on the dataset page: https://huggingface.co/datasets/KevinHuang/Structured3D.

sourceHugging Faceapache-2.0updated 8mo agoView on Hugging Face
1likes195downloads
resume_missing_data.py56 linesDownload Raw Back to code
1import os2import os.path as osp3from shutil import copytree, rmtree4 5missing_data = [6    '/Structured3D_panorama_01/Structured3D/scene_00206/2D_rendering/141/panorama/full/rgb_coldlight.png',7    '/Structured3D_panorama_07/Structured3D/scene_01412/2D_rendering/143/panorama/full/depth.png',8    '/Structured3D_panorama_09/Structured3D/scene_01815/2D_rendering/237/panorama/full/rgb_coldlight.png',9    '/Structured3D_panorama_13/Structured3D/scene_02608/2D_rendering/345/panorama/full/rgb_coldlight.png',10    '/Structured3D_panorama_05/Structured3D/scene_01010/2D_rendering/1162/panorama/full/depth.png',11    '/Structured3D_panorama_09/Structured3D/scene_01815/2D_rendering/1429/panorama/full/depth.png',12    '/Structured3D_panorama_04/Structured3D/scene_00810/2D_rendering/1817/panorama/full/depth.png',13    '/Structured3D_panorama_10/Structured3D/scene_02011/2D_rendering/2003/panorama/full/rgb_coldlight.png',14    '/Structured3D_panorama_04/Structured3D/scene_00809/2D_rendering/3065/panorama/full/depth.png',15    '/Structured3D_panorama_01/Structured3D/scene_00213/2D_rendering/22731/panorama/full/depth.png',16    '/Structured3D_panorama_01/Structured3D/scene_00213/2D_rendering/22735/panorama/full/depth.png',17    '/Structured3D_panorama_11/Structured3D/scene_02212/2D_rendering/175980/panorama/full/depth.png',18    '/Structured3D_panorama_07/Structured3D/scene_01410/2D_rendering/176231/panorama/full/rgb_coldlight.png',19    '/Structured3D_panorama_07/Structured3D/scene_01410/2D_rendering/180208/panorama/full/depth.png',20    '/Structured3D_panorama_11/Structured3D/scene_02213/2D_rendering/786544/panorama/full/depth.png',21    '/Structured3D_panorama_03/Structured3D/scene_00613/2D_rendering/794918/panorama/full/depth.png',22    '/Structured3D_panorama_11/Structured3D/scene_02212/2D_rendering/1058346/panorama/full/rgb_coldlight.png',23]24 25 26if __name__ == '__main__':27    # 替换为你的根目录路径28    root = '/xxx/code'29    30    src_dir = osp.join(root, 'share_data')31    dst_dir = osp.join(root, 'Structured3D')32    dst_copy_dir = osp.join(root, 'bak_data')33 34    os.makedirs(dst_copy_dir, exist_ok=True)35 36    ids = []37    for data_path in missing_data:38        scene = data_path.split('/Structured3D/')[-1].split('/2D_rendering/')[0]39        view = data_path.split('/2D_rendering/')[-1].split('/panorama/')[0]40        ids.append((scene, view))41 42    ids = sorted(list(set(ids)))43 44    for scene, view in ids:45        src_folder = osp.join(src_dir, view)46        dst_folder = osp.join(dst_dir, scene, '2D_rendering', view)47        dst_copy_folder = osp.join(dst_copy_dir, view)48 49        assert osp.exists(src_folder) and osp.isdir(src_folder), f'{src_folder}'50        assert osp.exists(dst_folder) and osp.isdir(dst_folder), f'{dst_folder}'51 52        copytree(dst_folder, dst_copy_folder)53 54        rmtree(dst_folder)55        copytree(src_folder, dst_folder)56