Skip to content

There is a difference between the target size and the input size in smooth_l1_loss #3

@czq0827

Description

@czq0827

E:\Salient Object Detection\2020ECCV\CoNet-master\CoNet\trainer.py:79: UserWarning: Using a target size (torch.Size([2, 256, 256])) that is different to the input size (torch.Size([2, 1, 256, 256])). This will likely lead to incorrect results due to broadcasting. Please ensure they have the same size.
loss4 = F.smooth_l1_loss(high_depth, depth, reduction='sum')
E:\Salient Object Detection\2020ECCV\CoNet-master\CoNet\trainer.py:81: UserWarning: Using a target size (torch.Size([2, 256, 256])) that is different to the input size (torch.Size([2, 1, 256, 256])). This will likely lead to incorrect results due to broadcasting. Please ensure they have the same size.
loss6 = F.smooth_l1_loss(pred_depth, depth, reduction='sum')

How to solve the problem during training. Thank you very much for your reply

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions