Skip to content

Instantly share code, notes, and snippets.

@steven-mi
Created October 3, 2020 19:48
Show Gist options
  • Save steven-mi/6f6ecfb14ffb9c44e387969bfc81317a to your computer and use it in GitHub Desktop.
Save steven-mi/6f6ecfb14ffb9c44e387969bfc81317a to your computer and use it in GitHub Desktop.
download cityscapes from terminal

How to download cityscapes dataset via terminal

To download the dataset the server check the authentication information of the cookie and confirm that the server is an authenticated user

Step 1. User authentication

Since it is authentication using cookie, it is necessary to acquire cookie first. This can also be done with wget! The command is as follows.

wget --keep-session-cookies --save-cookies=cookies.txt --post-data 'username=YOUR_EMAIL&password=YOUR_PASSWORD&submit=Login' https://www.cityscapes-dataset.com/login/; history -d $((HISTCMD-1))

history -d $((HISTCMD-1)) will delete the command entry from the history.


Step 2: Download

wget --load-cookies cookies.txt --content-disposition https://www.cityscapes-dataset.com/file-handling/?packageID=PACKAGE_ID

PACKAGE_ID = 1 for gtFine

PACKAGE_ID = 3 for leftImg8bit.

from: https://github.com/reger-men/keras_multi_gpus/wiki/How-to-download-cityscapes-dataset-via-terminal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment