import json
format annotations the same as for training, no need for data augmentation
def val_formatted_anns(image_id, objects):
     annotations = []
     for i in range(0, len(objects["id"])):
         new_ann = {
             "id": objects["id"][i],
             "category_id": objects["category"][i],
             "iscrowd": 0,
             "image_id": image_id,
             "area": objects["area"][i],
             "bbox": objects["bbox"][i],
         }
         annotations.append(new_ann)