def rescale_bbox(annotations, height, width):
    """Rescale bounding box to relative scale [0, 1] to the image."""
    ret = []
    for ann in annotations:
        ann = ann.asDict()
        ann["bbox"] = ann["bbox"] / (width, height)
        ret.append(ann)
    return ret