CWanli / RecoNet

Tensor Low-rank Reconstruction for Semantic Segmentation
109 stars 11 forks source link

Code error consultation #6

Open sjjdd opened 3 years ago

sjjdd commented 3 years ago

Hello, the author, after reading your code, found that there is an error ah, want to confirm, is the following code:lines 68 to 71 in the file b, c, height, width = x.size() C = self.pool(x) H = self.pool(x.permute(0, 3, 1, 2).contiguous()) W = self.pool(x.permute(0, 2, 3, 1).contiguous()) H. W tensor definitions need to be exchanged?The dimension of the tensor is B,C,H,W.Thank you for your reply!