Replies: 1 comment
-
ConcatDataset is for concatenating datasets of the same type. There's no logic to map classes together like you're trying to do. See here: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I got 2 dataset
Dataset_A have 15 classes with COCO format
Dataset_B have 20 classes with VOC format
I followed the format in https://mmdetection.readthedocs.io/en/latest/tutorials/customize_dataset.html#concatenate-dataset note part to create a concated dataset and the config like this:
I try to train this concat in a normal faster rcnn r50 fpn network.

so i set the num_classes to a+b which is 35 here
then i change both /mmdet/datasets/coco.py and /mmdet/datasets/voc.py file CLASSES part to

which also num = 35
CASE1: when I started training, everything was normal ,but i will got issue when this 1st training process and the 1st val process finished.
list out of range here
CASE2: so I change the faster rcnn r50 fpn num_classes to 15 which equal to dataset_a class num
at the same time i change the /mmdet/dataset/coco.py CLASSES part to only include dataset_A classes and the /mmdet/dataset/voc.py CLASSES part to only include dataset_B classes
but i still got issue
CASE3: SO I TRY LIKE THIS WAY
and this num_classes still 35
IT SHOWS THE SAME PROBLEM AT CASE1
I really wonder how to correctly concat two different types of datasets for normal training, val and testing processes
and another question is : it seem that i can not val and test this two different types datasets together after each epoch finished use the config below:
Beta Was this translation helpful? Give feedback.
All reactions