Skip to content

Commit

Permalink
Merge pull request #69 from ikvision/patch-3
Browse files Browse the repository at this point in the history
Update trainer.py
  • Loading branch information
nkolot authored Apr 1, 2020
2 parents 21a148d + d7dbd81 commit 5c79685
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion train/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def train_step(self, input_batch):
loss = self.options.shape_loss_weight * loss_shape +\
self.options.keypoint_loss_weight * loss_keypoints +\
self.options.keypoint_loss_weight * loss_keypoints_3d +\
loss_regr_pose + self.options.beta_loss_weight * loss_regr_betas +\
self.options.pose_loss_weight * loss_regr_pose + self.options.beta_loss_weight * loss_regr_betas +\
((torch.exp(-pred_camera[:,0]*10)) ** 2 ).mean()
loss *= 60

Expand Down

0 comments on commit 5c79685

Please sign in to comment.