alcunha / iwildcam2021ufam

1st Place Solution to iWildcam 2021: Count the number of animals of each species present in a sequence of images
Apache License 2.0
11 stars 3 forks source link

a question about training model #4

Closed Shawdy26256 closed 2 years ago

Shawdy26256 commented 2 years ago

as i know,when we train the model,we should tell the model what animals in the picture but both in file iwildcam2021_train_annotations.json and iwildcam2021train_originalimage_megadetector_v4.1_results_parsed.json, i can not find where mark what animals in the picture

alcunha commented 2 years ago

Hi,

The file iwildcam2021_train_annotations.json has both the image list and the annotations. The dataloader set the label for each image here. The JSON is organized as follows:

{
  "images" : [image],
  "categories" : [category],
  "annotations" : [annotation]
}

image{
  "id" : str,
  "width" : int,
  "height" : int,
  "file_name" : str,
  "rights_holder" : str,
  "location": int,
  "sub_location": int,
  "datetime": datetime,
  "seq_id": str,
  "seq_num_frames": int,
  "frame_num": int
}

category{
  "id" : int,
  "name" : str
}

annotation{
  "id" : str,
  "image_id" : str,
  "category_id" : int
}