Skip to content

Commit

Permalink
fix: the orignal wpdc loss
Browse files Browse the repository at this point in the history
  • Loading branch information
cleardusk committed Jan 26, 2021
1 parent e44cd27 commit a62d20f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wpdc_loss.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def _calc_weights_resample(self, input_, target_):
offset[:, -1] = offsetg[:, -1]

weights = torch.zeros_like(input, dtype=torch.float)
tmpv = (u_base + w_shp_base @ alpha_shp + w_exp_base @ alpha_exp).view(N, -1, 3).permute(0, 2, 1)
tmpv = (u_base + w_shp_base @ alpha_shpg + w_exp_base @ alpha_expg).view(N, -1, 3).permute(0, 2, 1)

tmpv_norm = torch.norm(tmpv, dim=2)
offset_norm = sqrt(w_shp_base.shape[0] // 3)
Expand Down

0 comments on commit a62d20f

Please sign in to comment.