Aria2通过命令行批量下载COCO数据库

本文介绍如何从GitHub获取aria2源码并进行编译以提高下载速度。针对编译过程中的make_unique不支持问题提供了解决方案,并展示了如何通过aria2c命令批量下载COCO数据集。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

因为服务器自带wget下载速度太慢,所以希望使用aria2下载工具得到更快的下载速度
首先从github for aria下载得到aria2的源码,然后编译,但是编译过程中得到一个错误信息半天解决不了:

make_unique not support

经过查找原来是g++使用的标准错误,同时没有添加对应的namespace
所以这里改为:

./configure CFLAGS=-std=c++14

同时修改./src/bignum.h中的所有的make_unique函数替换为std::make_unique

新建文件downurl.txt,键入

http://images.cocodataset.org/zips/train2017.zip                                                            
http://images.cocodataset.org/annotations/annotations_trainval2017.zip                                      
http://images.cocodataset.org/zips/val2017.zip                                                              
http://images.cocodataset.org/annotations/stuff_annotations_trainval2017.zip                                
http://images.cocodataset.org/zips/test2017.zip                                                             
http://images.cocodataset.org/annotations/image_info_test2017.zip

执行指令aria2c -c --input-file=downurl.txt 开始批量下载对应文件

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值