Closed Aptaorean closed 8 months ago
Thank you for pointing this out. I have uploaded the missing files. Please let me know if you need further help reproducing the results.
There is another question here.
File "E:\work\Segment\MMSFormer-main\tools\val_mm.py", line 196, in <module>
main(cfg)
File "E:\work\Segment\MMSFormer-main\tools\val_mm.py", line 166, in main
acc, macc, f1, mf1, ious, miou, _ = evaluate(model, dataloader, device)
File "D:\application\anaconda\envs\pytorch13\lib\site-packages\torch\autograd\grad_mode.py", line 27, in decorate_context
return func(*args, **kwargs)
File "E:\work\Segment\MMSFormer-main\tools\val_mm.py", line 83, in evaluate
metrics.update(preds.softmax(dim=1), labels)
File "E:\work\Segment\MMSFormer-main\semseg\metrics.py", line 15, in update
self.hist += torch.bincount(target[keep] * self.num_classes + pred[keep], minlength=self.num_classes**2).view(self.num_classes, self.num_classes)
RuntimeError: shape '[14, 14]' is invalid for input of size 3556
Excuse me, I encountered this error when I reproduced your code in order. I wonder if a key configuration file is missing?