def load_img_info(files):
    'Load the information of one image.\n\n    Args:\n        files (tuple): The tuple of (img_file, groundtruth_file)\n\n    Returns:\n        img_info (dict): The dict of the img and annotation information\n    '
    assert isinstance(files, tuple)
    (img_file, gt_file) = files
    assert (osp.basename(gt_file).split('.')[0] == osp.basename(img_file).split('.')[0])
    img = mmcv.imread(img_file, 'unchanged')
    img_info = dict(file_name=osp.join(osp.basename(img_file)), height=img.shape[0], width=img.shape[1], segm_file=osp.join(osp.basename(gt_file)))
    if (osp.splitext(gt_file)[1] == '.json'):
        img_info = load_json_info(gt_file, img_info)
    else:
        raise NotImplementedError
    return img_info
Load the information of one image.

Args:
    files (tuple): The tuple of (img_file, groundtruth_file)

Returns:
    img_info (dict): The dict of the img and annotation information
def load_img_info(files):
    'Load the information of one image.\n\n    Args:\n        files (tuple): The tuple of (img_file, groundtruth_file)\n\n    Returns:\n        img_info (dict): The dict of the img and annotation information\n    '
    assert isinstance(files, tuple)
    (img_file, gt_file) = files
    assert (osp.basename(gt_file).split('.')[0] == osp.basename(img_file).split('.')[0])
    img = mmcv.imread(img_file, 'unchanged')
    img_info = dict(file_name=osp.join(osp.basename(img_file)), height=img.shape[0], width=img.shape[1], segm_file=osp.join(osp.basename(gt_file)))
    if (osp.splitext(gt_file)[1] == '.json'):
        img_info = load_json_info(gt_file, img_info)
    else:
        raise NotImplementedError
    return img_info