Closed Yi-Yang355 closed 2 years ago
/home/amax/anaconda3/envs/yyi_dev/lib/python3.8/site-packages/torch/nn/functional.py:3060: UserWarning: Default upsampling behavior when mode=bicubic is changed to align_corners=False since 0.4.0. Please specify align_corners=True if the old behavior is desired. See the documentation of nn.Upsample for details.
warnings.warn("Default upsampling behavior when mode={} is changed "
/home/amax/yyi/projects/AMSA-master/AMSA/mmsr/models/losses.py:19: UserWarning: Using a target size (torch.Size([9, 3, 160, 160])) that is different to the input size (torch.Size([3, 3, 160, 160])). This will likely lead to incorrect results due to broadcasting. Please ensure they have the same size.
return F.l1_loss(pred, target, reduction='none')
Traceback (most recent call last):
File "mmsr/train.py", line 189, in
We have fixed it.
Thank you for your contribution. But I would like to ask why the dimension of input lr is (9,3,40,40), but the dimension of the final output turns into (3,3,160,160), and why the Batch dimension is changed?