tilemmpon / Singapore-Maritime-Dataset-Frames-Ground-Truth-Generation-and-Statistics

Repository for generating frames from the Singapore Maritime Dataset videos and converting the corresponding ground truth files. FInally, some basic statistics are generated.
38 stars 16 forks source link

KeyError: 'structXML' #10

Closed shkk941111 closed 4 months ago

shkk941111 commented 2 years ago

File "d:/Singapore-Maritime-Dataset-Frames-Ground-Truth-Generation-and-Statistics-master/load_mat_into_csvxml.py", line 601, in , object_list_train_temp, object_list_test_temp = generate_split_dataset_csv_xml(os.path.join(args.inputDir, mat_file), frames_tuple, paths_list, integer_bb=False) File "d:/Singapore-Maritime-Dataset-Frames-Ground-Truth-Generation-and-Statistics-master/load_mat_into_csv_xml.py", line 519, in generate_split_dataset_csv_xml frames_number = len(gt['structXML'][0]) KeyError: 'structXML'

What is the cause of this problem? How do I fix it?

tilemmpon commented 2 years ago

Hi,

Could you please post the ground truth file you are using? I generally used the file as shown here where they have a "structXML" entry but the code cannot find this structure which means that (1) either you use a wrong file or (2) they have updated the ground truth file without using this structure.

Best regards, tilemmpon

tilemmpon commented 4 months ago

Closed as incomplete since no further feedback has been received.