Skip to content

Commit

Permalink
Don't log about downsampling if nothing is downsampled. (#634)
Browse files Browse the repository at this point in the history
Small fix to skip the function directly if nothing should be done.
  • Loading branch information
MichaelGrupp authored Feb 22, 2024
1 parent 5eceb3c commit 922ab41
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions evo/common_ape_rpe.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ def get_delta_unit(args: argparse.Namespace) -> Unit:

def downsample_or_filter(args: argparse.Namespace, traj_ref: PosePath3D,
traj_est: PosePath3D) -> None:
if not (args.downsample or args.motion_filter):
return

logger.debug(SEP)
old_num_poses_ref = traj_ref.num_poses
old_num_poses_est = traj_est.num_poses
Expand Down

0 comments on commit 922ab41

Please sign in to comment.