本文主要是介绍使用shell脚本下载Nuscenes数据集,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
数据集官方地址https://www.nuscenes.org/download
一、 创建shell脚本
首先创建一个新目录,用来存放.sh文件
mkdir scripts
在这目录中使用cat命令进行创建和编辑dataset.sh文件,可以根据自己需求来进行命名
cd scripts
cat > dataset.sh
二、 编辑shell文件
cat命令输入之后会直接进入到文件编辑,再编辑中输入如下代码
wget -c -O 数据集名字 "下载网址"
如需下载
直接点击Asia,会跳转到下载界面
第一行就是数据集的名字,第二行就是下载的地址(nucenes下载网址不定时更新,需要自己粘贴下载地址),将相应的名称和网址进行复制粘贴,得到如下
wget -c -O nuimages-v1.0-all-sweeps-cam-front-left.tgz "https://s3.ap-southeast-1.amazonaws.com/asia.data.nuscenes.org/public/nuimages-v1.0/nuimages-v1.0-all-sweeps-cam-front-left.tgz?AWSAccessKeyId=ASIA6RIK4RRMEAXBKTWZ&Signature=k9keIo8aPJL8ppzb9WhzXSb4utA%3D&x-amz-security-token=IQoJb3JpZ2luX2VjEK3%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLWVhc3QtMSJHMEUCIFkIqjG9OEzsO0zwBboP629drkJSxg77UZSenRmTYObTAiEAnBvD9IWMcxVu%2BlCc2vqx2gAhrR7UKo2vzf6BqTTlTF0q%2FQIIpv%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FARADGgw5OTkxMzk2MDk2ODgiDBYqwRd9zCn58HFRBirRApAtGJh9A5AkS8Zs6BwBsv79VOpDrdNdEPY8xOger%2FNYBgBrXV50Y63fOOow5wphQjyFhO26a3tbpDixK6eVZt0%2FJ6%2FHImBXAezOb%2F1P%2FyefZ5XqqXFxbxxbCjQtxhSMTdgkCx7XS2UVH2QsvH9FgN%2BNdlDSjSlYCCxnEsZcFhZS3M%2F87HFiDkDF962OJVYGEk4AdcZZws4GKQFsHoT478GqySQXQsnhcI7RW9fMQLPa5g%2Fo%2FUMR%2BVI8rrK6%2F1HCh5awG96fl9fcAZ%2BRCHT0Wn3aGeJk9JmTkG85aKt1HcE8DsQD5Su%2F1tHuKwv2nMgS5bXrtadmJRhgjmQYS8%2BC4MJUalc614g6jF4FRQO02Opfuzx6g9DvBXCdzwK%2BRI8Pnlj65lqKg4k5v%2FJFlfbwpp5LqFtX4RrnMIaKkf9E2%2BR1m71%2BMdO%2FwZAB2nFngBPz538wg4CKogY6ngHpCLpetp1xYy7%2BiYx3IFWIFtMgS4A6wCel1Hsy3FH%2BWUpExY3r%2B4c4ExDr0vQ35HmDHlBEJXZK88xXeU3bMr4GhuiI%2BbIKVkMyLP47j65Oj9XL78BtxYIh6KIUc3tn%2BTSef2OhqCf3jKGuXQJQ%2FRMf%2FgiU07ftLsQ4Hs%2BnB5W7Ki40XAwY%2BSuvWzsgYPct%2BwQX1U4syoIgjFqM7GyWuw%3D%3D&Expires=1682513125"
如需同时下载多个数据集则需要在每个网址之后加一个&,最后一个网址之后也需要添加
wget -c -O nuimages-v1.0-all-sweeps-cam-front-left.tgz "https://s3.ap-southeast-1.amazonaws.com/asia.data.nuscenes.org/public/nuimages-v1.0/nuimages-v1.0-all-sweeps-cam-front-left.tgz?AWSAccessKeyId=ASIA6RIK4RRMEAXBKTWZ&Signature=k9keIo8aPJL8ppzb9WhzXSb4utA%3D&x-amz-security-token=IQoJb3JpZ2luX2VjEK3%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLWVhc3QtMSJHMEUCIFkIqjG9OEzsO0zwBboP629drkJSxg77UZSenRmTYObTAiEAnBvD9IWMcxVu%2BlCc2vqx2gAhrR7UKo2vzf6BqTTlTF0q%2FQIIpv%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FARADGgw5OTkxMzk2MDk2ODgiDBYqwRd9zCn58HFRBirRApAtGJh9A5AkS8Zs6BwBsv79VOpDrdNdEPY8xOger%2FNYBgBrXV50Y63fOOow5wphQjyFhO26a3tbpDixK6eVZt0%2FJ6%2FHImBXAezOb%2F1P%2FyefZ5XqqXFxbxxbCjQtxhSMTdgkCx7XS2UVH2QsvH9FgN%2BNdlDSjSlYCCxnEsZcFhZS3M%2F87HFiDkDF962OJVYGEk4AdcZZws4GKQFsHoT478GqySQXQsnhcI7RW9fMQLPa5g%2Fo%2FUMR%2BVI8rrK6%2F1HCh5awG96fl9fcAZ%2BRCHT0Wn3aGeJk9JmTkG85aKt1HcE8DsQD5Su%2F1tHuKwv2nMgS5bXrtadmJRhgjmQYS8%2BC4MJUalc614g6jF4FRQO02Opfuzx6g9DvBXCdzwK%2BRI8Pnlj65lqKg4k5v%2FJFlfbwpp5LqFtX4RrnMIaKkf9E2%2BR1m71%2BMdO%2FwZAB2nFngBPz538wg4CKogY6ngHpCLpetp1xYy7%2BiYx3IFWIFtMgS4A6wCel1Hsy3FH%2BWUpExY3r%2B4c4ExDr0vQ35HmDHlBEJXZK88xXeU3bMr4GhuiI%2BbIKVkMyLP47j65Oj9XL78BtxYIh6KIUc3tn%2BTSef2OhqCf3jKGuXQJQ%2FRMf%2FgiU07ftLsQ4Hs%2BnB5W7Ki40XAwY%2BSuvWzsgYPct%2BwQX1U4syoIgjFqM7GyWuw%3D%3D&Expires=1682513125"&wget -c -O nuimages-v1.0-all-sweeps-cam-front-right.tgz "https://s3.ap-southeast-1.amazonaws.com/asia.data.nuscenes.org/public/nuimages-v1.0/nuimages-v1.0-all-sweeps-cam-front-right.tgz?AWSAccessKeyId=ASIA6RIK4RRMKKW7I4XU&Signature=DrFJtp6pDoaslRW18ipEXcNpvm0%3D&x-amz-security-token=IQoJb3JpZ2luX2VjEK3%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLWVhc3QtMSJGMEQCIA4LHQI0Nn5aaYfId3nfdhIkfsDRxxotXluZCagmAZVTAiBZ2Y%2FIWyPbDV02FA4sYYjwY6cKVFTrJ5GMBvyN31VEpyr9Agim%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F8BEAMaDDk5OTEzOTYwOTY4OCIMWAg%2BS4W%2FCOCF4KS7KtECrXygAbuylG%2B0NAmTLy4WK2WUsMQHedRdNTJyhCG71AHNjY5STXwjCiJ6R5DSxTM1YeviZ13L0mqxAQxjeHk1ZsgMJQntBERkxBfnNFuX%2FYyD2qsJ1SkO8ZI1z%2B%2Bb34xfLu0ABIfOmGG8%2B0xW07WBkog5yz9HXgLFRiDdMZacZODL%2Ffqi3zi6128%2BNBdutVTNN5dnUHBAAvNLdARSCizZ3JNvyfu2a9OBa8IntnqTQCEHT%2FV6heu7NhD5uKAiaV6cR40piJ814UCtHJBD3HuVExVahZxyuRpnqMrlSJDgdll93Bned%2FohxK0i0GkqwPrNpNmqhcYuDsoJ8ZE%2FHc0ECIDzWIh54u3cSAMyXFWg%2BCjEOFAiJTxtmbWs6BJo%2BXysbT6bhuRegpYpT%2Fm%2FtDF2abql8biD8WYfDlkLyJ1u5Xg7T6m4nmCWQhAt0FyxS2dkLjDlioqiBjqfAbCbo8dB%2Fs3Y5h%2FdKsCbCEKNgfnoavH2CI%2FeuXN7gZgCug0aix73waphyupelHWtmj%2FSxdH9bEZNbrdb5qzD7b4ry80BzXfLsaKEZ2E2JM0SQlvq%2Fd0VGTQSw61nhHd6yeUCPWxbVLcehiuXOSBL4WI7yEHsi6k6N1YFEZun7aOMk9RlDgPkgOx3ZGe7vOcA%2FBcLT2ahRKIJfg%2F0snMxkA%3D%3D&Expires=1682513128"&
cttl+d两次保存并退出文件
三、 执行sh文件
使用chmod命令将文件成为可执行的状态
chmod u+x dataset.sh
最后使用bash命令来运行这个脚本
bash dataset.sh
出现如下提示
成功
ps.使用shell脚本下载数据集速度比较快,而且如果出现连接中断的问题系统会自动重新连接,从断掉的地方继续下载
这篇关于使用shell脚本下载Nuscenes数据集的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!