def get_bboxes(annot_file):
    """Read file of annotations and create dictionary 
    with image as key"""
    image2bboxes = {}
    with open(annot_file) as f:
        for line in f:
            items = line.split()
            image = items[0]
            bboxes = items[1:]
            image2bboxes[image] = bboxes
    return image2bboxes