qualitylib.tools.dataset.read_dataset¶
- read_dataset(dataset, shuffle=True)[source]¶
Read dataset module to create a list of assets in the dataset.
- Parameters:
dataset (
ModuleType) – Module describing attributes of the datasetshuffle (
bool) – Optional flag denoting whether assets should be returned in a random order. Defaults to True.
- Raises:
AttributeError – If dataset does not have a dataset_name.
AttributeError – If dataset does not have a list of dis_videos
KeyError – If any element of dis_videos does not have a ‘path’
ValueError – If any element of dis_videos does not have exactly one of ‘score’, ‘mos’, or ‘dmos’
ValueError – If a
Standardis not provided either globally or for each video.
- Return type:
- Returns:
List of asset dictionaries