Sunday, March 24, 2019

Download cityscapes data via cmd

wget --keep-session-cookies --save-cookies=cookies.txt --post-data 'username=myusername&password=mypassword&submit=Login' https://www.cityscapes-dataset.com/login/
wget --load-cookies cookies.txt --content-disposition https://www.cityscapes-dataset.com/file-handling/?packageID=1
In the first line, put your username and password. This will login with your credentials and keep the associated cookies.
In the second line, you need to provide the packageID paramater and it downloads the file.
packageIDs map like this in the website:
1 -> gtFine_trainvaltest.zip (241MB)
 2 -> gtCoarse.zip (1.3GB)
 3 -> leftImg8bit_trainvaltest.zip (11GB)