e 727, in _call_impl
result = self.forward(*input, **kwargs)
File "/workspace/OBBDetection/mmdet/models/losses/gaussian_distance_loss.py", line 237, in forward
**_kwargs) * self.loss_weight
File "/workspace/OBBDetection/mmdet/models/losses/utils.py", line 103, in wrapper
loss = weight_reduce_loss(loss, weight, reduction, avg_factor)
File "/workspace/OBBDetection/mmdet/models/losses/utils.py", line 41, in weight_reduce_loss
loss = loss * weight
RuntimeError: The size of tensor a (100) must match the size of tensor b (5) at non-singleton dimension 1
不过这是pytorch版本的,是否和你的版本相似的 调试了一是计算loss的时候,gwd计算出的loss是一维的 ,但是weight是二维的 什么情况下loss计算出是一维或者二维的呢。不好意思打扰了