Skip to content

Categories IDs differ between val and train #35

@cipri-tom

Description

@cipri-tom

I downloaded the latest train/Annotations/iSAID_train.json file from Google Drive. It lists categories as follows:

[{'id': 1, 'name': 'storage_tank'},
 {'id': 2, 'name': 'Large_Vehicle'},
 {'id': 3, 'name': 'Small_Vehicle'},
 {'id': 4, 'name': 'plane'},
 {'id': 5, 'name': 'ship'},
 {'id': 6, 'name': 'Swimming_pool'},
 {'id': 7, 'name': 'Harbor'},
 {'id': 8, 'name': 'tennis_court'},
 {'id': 9, 'name': 'Ground_Track_Field'},
 {'id': 10, 'name': 'Soccer_ball_field'},
 {'id': 11, 'name': 'baseball_diamond'},
 {'id': 12, 'name': 'Bridge'},
 {'id': 13, 'name': 'basketball_court'},
 {'id': 14, 'name': 'Roundabout'},
 {'id': 15, 'name': 'Helicopter'}]

This is not consistent with the categories IDs of val/Annotations/iSAID_val.json, nor the ones in

labels = [
# name id trainId category catId hasInstances ignoreInEval color multiplied color
Label( 'unlabeled' , 0 , 255 , 'void' , 0 , False , True , ( 0, 0, 0) , 0 ),
Label( 'ship' , 1 , 0 , 'transport' , 1 , True , False , ( 0, 0, 63) , 4128768),
Label( 'storage_tank' , 2 , 1 , 'transport' , 1 , True , False , ( 0, 63, 63) , 4144896),
Label( 'baseball_diamond' , 3 , 2 , 'land' , 2 , True , False , ( 0, 63, 0) , 16128 ),
Label( 'tennis_court' , 4 , 3 , 'land' , 2 , True , False , ( 0, 63,127) , 8339200),
Label( 'basketball_court' , 5 , 4 , 'land' , 2 , True , False , ( 0, 63,191) , 12533504),
Label( 'Ground_Track_Field' , 6 , 5 , 'land' , 2 , True , False , ( 0, 63,255) , 16727808),
Label( 'Bridge' , 7 , 6 , 'land' , 2 , True , False , ( 0,127, 63) , 4161280),
Label( 'Large_Vehicle' , 8 , 7 , 'transport' , 1 , True , False , ( 0,127,127) , 8355584),
Label( 'Small_Vehicle' , 9 , 8 , 'transport' , 1 , True , False , ( 0, 0,127) , 8323072),
Label( 'Helicopter' , 10 , 9 , 'transport' , 1 , True , False , ( 0, 0,191) , 12517376),
Label( 'Swimming_pool' , 11 , 10 , 'land' , 2 , True , False , ( 0, 0,255) , 16711680),
Label( 'Roundabout' , 12 , 11 , 'land' , 2 , True , False , ( 0,191,127) , 8371968),
Label( 'Soccer_ball_field' , 13 , 12 , 'land' , 2 , True , False , ( 0,127,191) , 12549888),
Label( 'plane' , 14 , 13 , 'transport' , 1 , True , False , ( 0,127,255) , 16744192),
Label( 'Harbor' , 15 , 14 , 'transport' , 1 , True , False , ( 0,100,155) , 10183680),

Moreover, this file does not list images width and height :( .

@akshitac8 Do you happen to have an updated file, or should I fix it myself ?

Relevant to #26

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions