FileID换成Google Drive的文件ID
FiledID是生成的分享链接中的ID
1、https://drive.google.com/uc?export=download&id=FileID
2、https://drive.google.com/u/0/uc?export=download&confirm=v4eG&id=FileID
————————————————
版权声明:本文为CSDN博主「Coder_xxDog123」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/qq_40996976/article/details/112782522
比如miniimagenet数据集下载
给定了:
base_folder = 'mini-imagenet'
gdrive_id = '1EKmnUcpipszzBHBRcXxmejuO4pceD4ht'
file_md5 = '3bda5120eb7353dd88e06de46e680146'
filename = 'mini-imagenet.hdf5'
网盘默认下载链接位url = "https://docs.google.com/uc?export=download"+id
则下载链接组合成:
https://docs.google.com/uc?export=download&id=1EKmnUcpipszzBHBRcXxmejuO4pceD4ht
浏览器键入网址即可下载