mmsegmentation
mmsegmentation copied to clipboard
AttributeError: 'list' object has no attribute 'shape' using PIDNet
Hello, I'm training PIDNet and instead of having a tensor of dimensions (B, C, H, W), I have a 2 lists of (C, H, W)... I don´t know if this is a bug or it's my fault. The error comes at the first part of the 'forward' function:
def forward(self, x: Tensor) -> Union[Tensor, Tuple[Tensor]]:
"""Forward function.
Args:
x (Tensor): Input tensor with shape (B, C, H, W).
Returns:
Tensor or tuple[Tensor]: If self.training is True, return
tuple[Tensor], else return Tensor.
"""
w_out = x.shape[-1] // 8
h_out = x.shape[-2] // 8
....
Thanks!
Some of the models have this randomly for some reason in my experience I don't know how to fix this.
same problem, nobody knows the solution?