module documentation
Utilities for working with the Cityscapes dataset.
Function | parse |
Parses the Cityscapes archive(s) in the specified directory and writes the requested splits in subdirectories of dataset_dir in fiftyone.types.FiftyOneDataset format. |
Variable | logger |
Undocumented |
Function | _export |
Undocumented |
Function | _extract |
Undocumented |
Function | _extract |
Undocumented |
Function | _extract |
Undocumented |
Function | _extract |
Undocumented |
Function | _parse |
Undocumented |
Function | _parse |
Undocumented |
Function | _parse |
Undocumented |
Function | _parse |
Undocumented |
Function | _parse |
Undocumented |
Function | _parse |
Undocumented |
Function | _parse |
Undocumented |
Function | _parse |
Undocumented |
Function | _parse |
Undocumented |
Function | _raise |
Undocumented |
Constant | _COARSE |
Undocumented |
Constant | _FINE |
Undocumented |
Constant | _IMAGES |
Undocumented |
Constant | _PERSON |
Undocumented |
def parse_cityscapes_dataset(source_dir, dataset_dir, scratch_dir, splits, fine_annos=None, coarse_annos=None, person_annos=None):
(source)
¶
Parses the Cityscapes archive(s) in the specified directory and writes
the requested splits in subdirectories of dataset_dir in
fiftyone.types.FiftyOneDataset
format.
The archives must have been manually downloaded into the directory before this method is called.
The source_dir should contain the following files:
source_dir/ leftImg8bit_trainvaltest.zip gtFine_trainvaltest.zip # optional gtCoarse.zip # optional gtBbox_cityPersons_trainval.zip # optional
Parameters | |
source | the directory continaining the manually downloaded Cityscapes files |
dataset | the directory in which to build the output dataset |
scratch | a scratch directory to use for temporary files |
splits | a list of splits to parse. Supported values are (train, test, validation) |
fineNone | whether to load the fine annotations (True), or not (False), or only if the ZIP file exists (None) |
coarseNone | whether to load the coarse annotations (True), or not (False), or only if the ZIP file exists (None) |
personNone | whether to load the personn detections (True), or not (False), or only if the ZIP file exists (None) |
Raises | |
OSError | if any required source files are not present |