zensvi.download.GSDownloader

class zensvi.download.GSDownloader(log_path: str | None = None)

Bases: zensvi.download.base.BaseDownloader

Global Streetscapes class to download the original NUS Global Streetscapes dataset.

To download the models used in the dataset, please see cv/classification/utils/global_streetscapes.py

download_svi() None

Required abstract methods from parent class.

property repo_id: str

Property for Huggingface download.

Returns:

repo_id

Return type:

str

property repo_type: str

Property for Huggingface download.

Returns:

repo_type

Return type:

str

download_all_data(local_dir: str = 'data/') None

Download all folders and files, recursively, from data/ This folder contains all metadata (csv) for all images of the Global Streetscapes dataset.

Parameters:

local_dir (str) – Local folder to download the data

download_manual_labels(local_dir: str = 'manual_labels/') None

Download all folders and files, recursively, from manual_labels/ This folder contains all the manual labels (csv) for train and test images as well as the raw images compressed in in tar.gz.

Parameters:

local_dir (str) – Local folder to download the data

download_train(local_dir: str = 'manual_labels/train/') None

Download all folders and files, recursively, from manual_labels/train/ This folder contains all the manual labels (csv) for only the train images.

Parameters:

local_dir (str) – Local folder to download the data

download_test(local_dir: str = 'manual_labels/test/') None

Download all folders and files, recursively, from manual_labels/test/ This folder contains all the manual labels (csv) for only the test images.

Parameters:

local_dir (str) – Local folder to download the data

download_img_tar(local_dir: str = 'manual_labels/img/') None

Download all folders and files, recursively, from manual_labels/img/ This folder contains all the raw images, compressed in tar.gz.

Parameters:

local_dir (str) – Local folder to download the data

property log_path: str | None

Property for log_path.

Returns:

Path to the log file

Return type:

str