I used the Open Images dataset to train the CNN for two classes: Person, Mobile phone. The problem is that Yolo detects only 1 class per image. For example, if an image contains a human and a mobile phone, only mobile phones will be detected. Example Output. If there are only humans, then all humans will be detected successfully. I think the problem is that the dataset has only images with 1 class marked per image. I have many images in dataset where both classes are present, but only one of them is marked with labels. Can that be the problem?
How can I solve the problem?
- Add several images with both classes marked
- Mark all images to make sure that every image that contains both phone and person has appropriate label for each object
- Or maybe there is a way to download the dataset so that both classes are marked correctly?
Here is what in my .names file:
Person
Mobile_phone
And here is .data file:
classes = 2
train = data/train.txt
valid = data/test.txt
names = data/obj.names
backup = /mydrive/yolov4/backup
Thanks for your help!