pspnet-pytorch icon indicating copy to clipboard operation
pspnet-pytorch copied to clipboard

请问这个是哪里出了问题,我没改代码

Open 425her0 opened this issue 1 year ago • 3 comments

File "/root/pspnet-pytorch-master/utils/callbacks.py", line 135, in get_miou_png pr = F.softmax(pr.permute(1,2,0),dim = -1).cpu().numpy() RuntimeError: number of dims don't match in permute

425her0 avatar Mar 11 '23 09:03 425her0

我把aux_branch设为False就不会有问题了 请问这是什么原因

425her0 avatar Mar 11 '23 10:03 425her0

额,因为aux_branch模式输出为两个,我没考虑到这个情况,我想想

bubbliiiing avatar Mar 12 '23 14:03 bubbliiiing

修改了

bubbliiiing avatar Mar 12 '23 15:03 bubbliiiing