引言
KITTI和Nuscenes是两个自动驾驶数据集,但是均需要注册才能下载,这使得云服务用户很头疼。参考博客1和博客2,为将如何下载两个数据集的方法总结如下。
Nuscenes数据集
Nuscenes数据集的下载比较简单,只需要使用以下脚本即可(注意这里只下载了keyframes的train-val datasets部分,因为自己电脑空间实在有限,如需下载完整的,只需要修改网址最后的文件名就可以轻松实现)
!/bin/bash
cd ~/data/nuscenes
echo 'downloading nuscenes'
# download train-val data (only keyframes)
!/bin/bash
cd ~/data/nuscenes
echo 'downloading nuscenes'
# download train-val data (only keyframes)
wget https://d36yt3mvayqw5m.cloudfront.net/public/v1.0/v1.0-trainval_meta.tgz
wget https://d36yt3mvayqw5m.cloudfront.net/public/v1.0/v1.0-trainval01_keyframes.tgz
wget https://d36yt3mvayqw5m.cloudfront.net/public/v1.0/v1.0-trainval02_keyframes.tgz
wget https://d36yt3mvayqw5m.cloudfront.net/public/v1.0/v1.0-trainval03_keyframes.tgz
wget https://d36yt3mvayqw5m.cloudfront.net/public/v1.0/v1.0-trainval04_keyframes.tgz
wget https://d36yt3mvayqw5m.cloudfront.net/public/v1.0/v1.0-trainval05_keyframes.tgz
wget https://d36yt3mvayqw5m.cloudfront.net/public/v1.0/v1.0-trainval06_keyframes.tgz
wget https://d36yt3mvayqw5m.cloudfront.net/public/v1.0/v1.0-trainval07_keyframes.tgz
wget https://d36yt3mvayqw5m.cloudfront.net/public/v1.0/v1.0-trainval07_keyframes.tgz
wget https://d36yt3mvayqw5m.cloudfront.net/public/v1.0/v1.0-trainval08_keyframes.tgz
wget https://d36yt3mvayqw5m.cloudfront.net/public/v1.0/v1.0-trainval09_keyframes.tgz
wget https://d36yt3mvayqw5m.cloudfront.net/public/v1.0/v1.0-trainval10_keyframes.tgz
# download test data
wget https://d36yt3mvayqw5m.cloudfront.net/public/v1.0/v1.0-test_meta.tgz
wget https://motional-nuscenes.s3.amazonaws.com/public/v1.0/v1.0-test_blobs.tgz
KITTI数据集
这个数据集需要添加host解决,没有VSCODE的用户使用vim修改/etc/hosts文件,有的用户使用如下命令修改
code -n /etc/hosts
加入kitti的host
52.219.169.53 s3.eu-central-1.amazonaws.com
如果是ubuntu 16.04及其之前的用户,使用如下命令重启host
sudo /etc/init.d/networking restart
如果是版本更新的用户,使用如下命令重启host
sudo systemctl restart NetworkManager
重启完成之后,检验是否成功:
ping 52.219.169.53
如若成功,运行如下的脚本下载KITTI Odometry数据集,其他KITTI数据集也可以根据本地电脑的下载链接如法泡制
#!/bin/bash
cd ~/data/kitti/odometry
wget https://s3.eu-central-1.amazonaws.com/avg-kitti/data_odometry_color.zip
wget https://s3.eu-central-1.amazonaws.com/avg-kitti/data_odometry_velodyne.zip
wget https://s3.eu-central-1.amazonaws.com/avg-kitti/data_odometry_calib.zip
wget https://s3.eu-central-1.amazonaws.com/avg-kitti/data_odometry_poses.zip
wget https://s3.eu-central-1.amazonaws.com/avg-kitti/data_odometry_gray.zip