在windows 環境要使用wget 下載 . 須要另外想辦法解決, 以下提供一個簡易方式, 只要在python 中 install wget, 及一個 網址檔案的 list. 就可以全部一鍵download 完畢
在 https://github.com/nianticlabs/monodepth2 的
.\monodepth2-master\splits 中有個 kitti 的 list file "kitti_archives_to_download.txt"
A. 在python 環境中安裝
pip install wget
將以下存成 nwget.py
python nwget.py
可將所有檔 download 到 ..\kitti_data 的目錄中, 請事先建立好 kitti_data 目錄中
<pre class="brush:something"> import wget import os file1 = open('kitti_archives_to_download.txt', 'r') Lines = file1.readlines() os.chdir("../kitti_data") count = 0 for line in Lines: count += 1 wget.download(line)</pre>
文章標籤
全站熱搜
