Skip to content

Commit

Permalink
Update loss.py
Browse files Browse the repository at this point in the history
Resolves: #5
  • Loading branch information
zgojcic authored Apr 11, 2021
1 parent 7fa57e3 commit fb9b415
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/loss.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ def __call__(self, inferred_values, gt_data):
mask_temp = mask[prev_idx: prev_idx + gt_data['len_batch'][batch_idx][0]]

# Transform the point cloud with gt and estimated ego-motion parameters
pc_t_gt_temp = transform_point_cloud(p_s_temp[mask_temp,:3], gt_data['R_ego'][batch_idx,:,:], gt_data['t_ego'][batch_idx,:,:])
pc_t_est_temp = transform_point_cloud(p_s_temp[mask_temp,:3], inferred_values['R_est'][batch_idx,:,:], inferred_values['t_est'][batch_idx,:,:])
pc_t_gt_temp = transform_point_cloud(p_s_temp[mask_temp,1:4], gt_data['R_ego'][batch_idx,:,:], gt_data['t_ego'][batch_idx,:,:])
pc_t_est_temp = transform_point_cloud(p_s_temp[mask_temp,1:4], inferred_values['R_est'][batch_idx,:,:], inferred_values['t_est'][batch_idx,:,:])

pc_t_gt.append(pc_t_gt_temp.squeeze(0))
pc_t_est.append(pc_t_est_temp.squeeze(0))
Expand Down

0 comments on commit fb9b415

Please sign in to comment.