Sourajit-Maity / juvdv2-vdvwc

5 stars 2 forks source link

Class number out of index and incorrect annotations in Annotation/Test/Sunny/Night folder #3

Open 5rujana opened 1 week ago

5rujana commented 1 week ago

There are two issues with the annotations in the Annotation/Test/Sunny/Night folder:

1)The class number is given as 14 in several files, which is causing an index out of bounds error because the number of classes is only 14 (assuming the class numbers should be from 0 to 13).

2)The classes present in the annotations are different from the objects in the photos. For example let us take night(1) image , object 0 is labeled as a car and class 14, which is supposed to be class 13, is labeled as a boat. However, the image is of a city road at night with a rickshaw.

Attached is a file showing examples of the annotation files with the class number issue and discrepancies between annotated classes and objects in the photos.

Git hub issue

vegam05 commented 1 week ago

There are actually 15 classes, not 14, I also faced this issue and had to debug this. If you look carefully, you'll find the 15th class labelled as class-id:14(since the id ranges from 0-14) in some annotation files . The class names are: ['car', 'bike', 'auto', 'rickshaw', 'cycle', 'bus', 'minitruck', 'truck', 'van', 'taxi', 'motorvan', 'toto', 'train', 'boat', 'cycle van']. And yes the dataset is very poorly curated, but I suppose the challenge lies there only. I thus recommend you to configure the driver code to accept 15 classes and not 14 in order to fix this.

5rujana commented 1 week ago

Yes, I have looked through it again and found this out. I agree there few images where van is labelled as car, along with it I presumed cycle car as Rikshaw, when I went through obj.data I found it to be separate class named cycle car. On Thu, 4 Jul 2024, 17:37 Kirti Raj, @.***> wrote:

There are actually 15 classes, not 14, I also faced this issue and had to debug this. If you look carefully, you''ll find the 15th class labelled as class-id:14(since the id ranges from 0-14) in some annotation files . The class names are: ['car', 'bike', 'auto', 'rickshaw', 'cycle', 'bus', 'minitruck', 'truck', 'van', 'taxi', 'motorvan', 'toto', 'train', 'boat', 'cycle van']. And yes the dataset is very poorly curated, but I suppose the challenge lies there only.

— Reply to this email directly, view it on GitHub https://github.com/Sourajit-Maity/juvdv2-vdvwc/issues/3#issuecomment-2208802768, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3QL54H5YYDSQTOWWMPTUI3ZKU3GHAVCNFSM6AAAAABKK3FYNOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBYHAYDENZWHA . You are receiving this because you authored the thread.Message ID: @.***>