星级打分
平均分:NAN 参与人数:0 我的评分:未评
本帖最后由 wcw888 于 2022-4-11 15:20 编辑
如题,想用云盘上的素材和模型包在kaggle上训练,因为上传太慢不想再传一次 啊
刚谷歌了下,按以下操作执行,结果拷过来的文件0kb,这里面说的“你共享文件的链接中的文件id”是怎么看的啊?
如何将存放在GOOGLE DRIVE的权重文件导入到KAGGLE平台(1)在Kaggle中新建Notebook,并填入下面的代码 !wget --load-cookies /tmp/cookies.txt "https://docs.google.com/uc?export=download&confirm=$(wget --quiet --save-cookies /tmp/cookies.txt --keep-session-cookies --no-check-certificate 'https://docs.google.com/uc?export=download&id=Fileid' -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1\n/p')&id=Fileid" -O yourfilename && rm -rf /tmp/cookies.txt代码中出现两次 Fileid 和 一次 yourfilename
他们分别表示你的谷歌网盘分享的文件的id以及你下载后的文件命名 这里是大文件的下载方式,小文件也可如此操作,也可如下操作: !wget --no-check-certificate ‘https://docs.google.com/uc?export=download&id=Fileid’ -O yourfilename 你的共享链接:
https://drive.google.com/file/d/Fileid/view?usp=sharing Fileid:
你共享文件的链接中的文件id yourfilename:
文件下载后的名称 (2)专门整一个下载数据的notebook,使用commit模式保存 Notebook需要进行如下设置: 

 
(3)转到你的运行后的notebook界面
翻到最下面,将会发现output这一部分有你下载的权重文件,此时保存为你Kaggle的dataset即可。 
|