我用Cityscapes默认的19类生成数据集,在Deeplabv3+上进行训练,真实标签里像素值从road为0开始,到18结束,其他不想训练的区域与类别像素值均为255,即标签里白色部分,加上背景一共是20类,num_classes设置为20,损失函数为CEloss,把ignore_index设置成255,训练就报cuda错误,改成ignore_index=num_classes就可以进行训练,但是预测结果中road被当成背景了,实际那些255的区域并没有区分成背景,能帮我分析下原因吗,cuda错误如下:RuntimeError: CUDA error: device-side assert triggered
CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1.
Compile with TORCH_USE_CUDA_DSA to enable device-side assertions.
miou如下图:
