open-mmlab / mmsegmentation

OpenMMLab Semantic Segmentation Toolbox and Benchmark.
https://mmsegmentation.readthedocs.io/en/main/
Apache License 2.0
8.3k stars 2.62k forks source link

mmseg中计算accuracy时使用threshold参数时报错 #1723

Open nostayup opened 2 years ago

nostayup commented 2 years ago

当设置mmseg/models/losses/accuracy.py中的accuracy函数时,如果设置thresh参数报了如下错误: ‘’ File "/mmseg/models/losses/accuracy.py", line 45, in accuracy correct = correct & (pred_value > thresh).t() RuntimeError: t() expects a tensor with <= 2 dimensions, but self is ”

mm-assistant[bot] commented 2 years ago

We recommend using English or English & Chinese for issues so that we could have broader discussion.

MeowZheng commented 2 years ago

if you do not mind, could you share the thresh value you set?