Skip to content

Commit

Permalink
Update loss.py
Browse files Browse the repository at this point in the history
fix incorrect loss function
  • Loading branch information
zzh8829 authored and meetps committed Mar 6, 2019
1 parent bc523a7 commit 801fb20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ptsemseg/loss/loss.py
Expand Up @@ -27,7 +27,7 @@ def multi_scale_cross_entropy2d(input, target, weight=None, size_average=True, s
n_inp = len(input)
scale = 0.4
scale_weight = torch.pow(scale * torch.ones(n_inp), torch.arange(n_inp).float()).to(
input.device
target.device
)

loss = 0.0
Expand Down

0 comments on commit 801fb20

Please sign in to comment.