mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2026-02-25 23:56:00 +08:00
fbcode/vision/fair/pytorch3d/pytorch3d/ops/points_alignment.py
Reviewed By: sgrigory Differential Revision: D93712744 fbshipit-source-id: 660560cdef9ff1d2173ae06de54df31766ee537f
This commit is contained in:
committed by
meta-codesync[bot]
parent
d631b56fba
commit
0e435c297c
@@ -182,8 +182,7 @@ def iterative_closest_point(
|
||||
t_history.append(SimilarityTransform(R, T, s))
|
||||
|
||||
# compute the root mean squared error
|
||||
# pyre-fixme[58]: `**` is not supported for operand types `Tensor` and `int`.
|
||||
Xt_sq_diff = ((Xt - Xt_nn_points) ** 2).sum(2)
|
||||
Xt_sq_diff = torch.square(Xt - Xt_nn_points).sum(2)
|
||||
rmse = oputil.wmean(Xt_sq_diff[:, :, None], mask_X).sqrt()[:, 0, 0]
|
||||
|
||||
# compute the relative rmse
|
||||
|
||||
Reference in New Issue
Block a user