Open ekim322 opened 1 year ago
Hi, have you ever changed the cfg file?
If you can train Siamese RPN on public datasets, but meet errors on your custom dataset with the same cfg file, it seems caused by your wrong dataset/gt format. Please make sure that your custom dataset aligns with one public dataset.
Best wishes.
I am trying to train a SOT model (Siamese RPN) on a custom dataset.
My code runs into an error when it starts iterating through the train dataset in mmcv/runner/epoch_based_runner.py -> class EpochBasedRunner -> train()
The iterator (enumerate(self.data_loader)) calls mmtrack/datasets/pipelines/processing.py -> class PairSampling -> call()
and I get an error saying
Both the
video_info
andvideo_info_another
dictionaries do not have the key 'frame_ids'. The only keys they have are ['img_info', 'ann_info', 'img_prefix', 'seg_prefix', 'proposal_file', 'bbox_fields', 'mask_fields', 'seg_fields', 'is_video_data'].I am following the custom dataset instruction from the documentation and I've checked the sample config, but I don't see anywhere with 'frame_ids'.
Am I supposed to be adding frame_ids somewhere in the configuration? I see 'frame_id' in the annotations.json file for the images but I don't see where 'frame_ids' are added