Scannet 数据集下载(提供一部分网盘链接)

相较于上面完整的scnnet数据集,该网盘链接仅包括以下尾缀的文件,希望注意

***_vh_clean_2.ply

***_vh_clean_2.labels.ply

***_vh_clean_2.0.010000.segs.json

***.aggregation.json

网盘链接:

链接:https://pan.baidu.com/s/1aURvd6s1q3e9IhtE1xRsFw?pwd=v53n 
提取码:v53n 
--来自百度网盘超级会员V3的分享


转载 scannet 下载脚本,2024.3.16 依旧可用,可选择下载文件类型\场景ID:

这里主要介绍scan数据集怎么下载,正常下载流程需要进行在官网认证,这里有一个修改好的代码直接使用代码下载#!/usr/bin/env python # Downloads ScanNet public data release # Run with ./download-scannet.py (or ...scannet数据集下载 - Powered by Discuz! (lijingle.com)


另外,在复现 PointGroup: Dual-Set Point Grouping for 3D Instance Segmentation (CVPR2020) 时,写了一个关于 data preparation 过程中根据 train.txt 移动数据的脚本,仅供参考

import os
import shutil

def copyfile(srcfile, dstpath):                        # 复制函数
    if not os.path.isfile(srcfile):
        print ("%s not exist!"%(srcfile))
    else:
        fpath,fname=os.path.split(srcfile)             # 分离文件名和路径
        if not os.path.exists(dstpath):
            os.makedirs(dstpath)
        dstpath = os.path.join(dstpath, fname)
        shutil.copy(srcfile, dstpath)                  # 复制文件
        print ("copy %s -> %s"%(srcfile, dstpath))

def mov(t_data, t_files, base_dir):
    for t_file in t_files:
        with open(t_data+'.txt',"r") as f:
            lines = f.readlines()
            for line in lines:
                id = line.strip('\n')
                scrfile = os.path.join(base_dir, id, id + t_file)
                dstpath = os.path.join(target_dir, t_data)
                copyfile(srcfile=scrfile, dstpath=dstpath)

target_dir = '/data0/chenxiang/PointGroup/dataset/scannetv2'

t_data = 'train'
t_files = ['_vh_clean_2.ply', '_vh_clean_2.labels.ply', 
          '_vh_clean_2.0.010000.segs.json', '.aggregation.json']
base_dir = '/data0/chenxiang/data/scans'
mov(t_data=t_data, t_files=t_files, base_dir=base_dir)

t_data = 'val'
t_files = ['_vh_clean_2.ply', '_vh_clean_2.labels.ply', 
          '_vh_clean_2.0.010000.segs.json', '.aggregation.json']
base_dir = '/data0/chenxiang/data/scans'
mov(t_data=t_data, t_files=t_files, base_dir=base_dir)

t_data = 'test'
t_files = ['_vh_clean_2.ply']
base_dir = '/data0/chenxiang/data/scans_test'
mov(t_data=t_data, t_files=t_files, base_dir=base_dir)

  • 14
    点赞
  • 21
    收藏
    觉得还不错? 一键收藏
  • 4
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值