def collect_annotations(files, nproc=1):
    'Collect the annotation information.\n\n    Args:\n        files (list): The list of tuples (image_file, groundtruth_file)\n        nproc (int): The number of process to collect annotations\n\n    Returns:\n        images (list): The list of image information dicts\n    '
    assert isinstance(files, list)
    assert isinstance(nproc, int)
    if (nproc > 1):
        images = mmcv.track_parallel_progress(load_img_info, files, nproc=nproc)
    else:
        images = mmcv.track_progress(load_img_info, files)
    return images
Collect the annotation information.

Args:
    files (list): The list of tuples (image_file, groundtruth_file)
    nproc (int): The number of process to collect annotations

Returns:
    images (list): The list of image information dicts
def collect_annotations(files, nproc=1):
    'Collect the annotation information.\n\n    Args:\n        files (list): The list of tuples (image_file, groundtruth_file)\n        nproc (int): The number of process to collect annotations\n\n    Returns:\n        images (list): The list of image information dicts\n    '
    assert isinstance(files, list)
    assert isinstance(nproc, int)
    if (nproc > 1):
        images = mmcv.track_parallel_progress(load_img_info, files, nproc=nproc)
    else:
        images = mmcv.track_progress(load_img_info, files)
    return images