Hello, I followed the README instructions trying to use gta data for training.
I can make predictions for cityscapes images with the pre-trained model gtaHR2csHR_hrda_246ef.
But when I tried to train the model with the code below( not using full gta dataset, only 4999 pics of them),
python run_experiments.py --config configs/hrda/gtaHR2csHR_hrda.py
I got some assertion lenth error about samples_with_class.
2024-01-11 11:21:01,827 - mmseg - INFO - Loaded 4999 images from data/gta/images
2024-01-11 11:21:01,910 - mmseg - INFO - Loaded 2975 images from data/cityscapes/leftImg8bit/train
2024-01-11 11:21:01,911 - mmseg - INFO - RCS Classes: [17, 7, 6, 4, 9, 5, 13, 14, 3, 11, 8, 1, 10, 2, 0]
2024-01-11 11:21:01,911 - mmseg - INFO - RCS ClassProb: [1.6132097e-01 1.5626104e-01 1.5324336e-01 1.3592052e-01 1.0360345e-01
6.5830752e-02 5.8957204e-02 5.6184866e-02 4.4540595e-02 4.0169138e-02
2.2608098e-02 1.3449171e-03 1.5118295e-05 1.4972226e-13 3.3338909e-23]
Traceback (most recent call last):
File "run_experiments.py", line 120, in <module>
train.main([config_files[i]])
File "d:\HRDA\tools\train.py", line 151, in main
datasets = [build_dataset(cfg.data.train)]
File "d:\HRDA\mmseg\datasets\builder.py", line 73, in build_dataset
dataset = UDADataset(
File "d:\HRDA\mmseg\datasets\uda_dataset.py", line 100, in __init__
assert len(self.samples_with_class[c]) > 0
AssertionError
I wonder if you could give me some advice. The environment info is as below. Many thanks.
Hello, I followed the README instructions trying to use gta data for training.
I can make predictions for cityscapes images with the pre-trained model gtaHR2csHR_hrda_246ef.
But when I tried to train the model with the code below( not using full gta dataset, only 4999 pics of them),
python run_experiments.py --config configs/hrda/gtaHR2csHR_hrda.py
I got some assertion lenth error about samples_with_class.I wonder if you could give me some advice. The environment info is as below. Many thanks.