Open Wanttoretire opened 1 year ago
I encontour the same problem, same classes got 0 IOU. I ran the experiment using default fcn-unet config, even fine-tuning from model provided in model zoo after a few itertaions will bring IOU of certain class close to 0.
I encontour the same problem, same classes got 0 IOU. I ran the experiment using default fcn-unet config, even fine-tuning from model provided in model zoo after a few itertaions will bring IOU of certain class close to 0.
That's reaaaally wired. I even ran it on my own computer instead of the server. If u solve the problem plz tell me how TAT
我好像也遇到了这个问题,很奇怪
I also encontour the same problem,but don't know where is wrong.
你有解决这个问题吗?我完全不知道该怎么办。
I realize what's wrong with my code. It's because I change my loss function from crossentropy to dice loss, but I don't know why iou of some classes become 0 when use dice loss. I also tried git clone the whole git and train many times. It is wired that iou show agin. 我英语太烂了简而言之就是我把损失函数换成了dice loss然后好多iou就没了,换回去也没有用,但是我重新git clone了一下整个代码,然后每500次就eval一次,不知道为啥试了好多次之后iou自己出现了
I trained swin+upernet_tiny, but this time iou of some classes like wall, fence, pole etc is 0. The loss is reduce normally And I try two gpus and one gpus but it still got 0. five days ago all things works well and today I just change the PORT in dist_train.sh from29500 to 29501
2023-05-27 14:45:52,111 - mmseg - INFO - Iter [32000/160000] lr: 4.800e-05, eta: 17:17:56, time: 0.517, data_time: 0.004, memory: 8331, decode.loss_dice: 0.2293, decode.loss_focal: 0.0107, decode.acc_seg: 89.7323, aux.loss_dice: 0.2794, aux.loss_focal: 0.0131, aux.acc_seg: 87.3850, loss: 0.5325 2023-05-27 14:48:22,418 - mmseg - INFO - per class results: 2023-05-27 14:48:22,420 - mmseg - INFO - +---------------+-------+-------+ | Class | IoU | Acc | +---------------+-------+-------+ | road | 95.93 | 97.79 | | sidewalk | 76.66 | 89.52 | | building | 85.69 | 95.65 | | wall | 0.0 | 0.0 | | fence | 0.0 | 0.0 | | pole | 56.24 | 69.46 | | traffic light | 59.02 | 75.59 | | traffic sign | 71.09 | 78.95 | | vegetation | 89.16 | 95.58 | | terrain | 52.99 | 66.56 | | sky | 92.89 | 97.7 | | person | 73.15 | 84.3 | | rider | 0.0 | 0.0 | | car | 90.28 | 96.09 | | truck | 0.0 | 0.0 | | bus | 0.0 | 0.0 | | train | 0.0 | 0.0 | | motorcycle | 0.0 | 0.0 | | bicycle | 61.69 | 93.37 | +---------------+-------+-------+ 2023-05-27 14:48:22,420 - mmseg - INFO - Summary: 2023-05-27 14:48:22,420 - mmseg - INFO - +-------+-------+-------+ | aAcc | mIoU | mAcc | +-------+-------+-------+ | 92.73 | 47.62 | 54.77 | +-------+-------+-------+
and the config is